CodeSubDirectory.DirectoryName Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the name of the directory that contains files compiled at run time.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

[ConfigurationPropertyAttribute("directoryName", IsRequired = true, 
	IsKey = true, DefaultValue = "")]
[TypeConverterAttribute(typeof(WhiteSpaceTrimStringConverter))]
public string DirectoryName { get; set; }

Property Value

Type: System.String

A string value specifying the name of the directory reference used during compilation.

A directoryName attribute of an add element of the configuration is searched only from the \App_Code path; therefore, adding directoryName="\App_Code\Applogic" is not valid.

.NET Framework
Available since 2.0
Return to top
Show: