SectionDefinition.AllowLocation Property

 

Gets or sets a value indicating whether the configuration section allows the location attribute.

Namespace:   Microsoft.Web.Administration
Assembly:  Microsoft.Web.Administration (in Microsoft.Web.Administration.dll)

public string AllowLocation { get; set; }

Property Value

Type: System.String

"true" if the configuration section can be defined in a location; otherwise, "false". The default is "true".

System_CAPS_noteNote

This property uses string values of "true" and "false" and not boolean values of true and false.

The following example demonstrates the AllowLocation property.

Return to top
Show: