语言

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"无效。

适用于