語言

CodeSubDirectory.DirectoryName 屬性

定義

取得或設定包含執行時編譯檔案的目錄名稱。

public:
 property System::String ^ DirectoryName { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.TypeConverter(typeof(System.Configuration.WhiteSpaceTrimStringConverter))]
[System.Configuration.ConfigurationProperty("directoryName", DefaultValue="", IsKey=true, IsRequired=true)]
public string DirectoryName { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Configuration.WhiteSpaceTrimStringConverter))>]
[<System.Configuration.ConfigurationProperty("directoryName", DefaultValue="", IsKey=true, IsRequired=true)>]
member this.DirectoryName : string with get, set
Public Property DirectoryName As String

屬性值

一個字串值,指定編譯過程中所使用的目錄參考名稱。

屬性

備註

directoryName配置元素的屬性add僅從\App_Code路徑中搜尋;因此,加法directoryName="\App_Code\Applogic"不成立。

適用於