CodeSubDirectory.DirectoryName Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on 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 := "")>
Public Property DirectoryName As String

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