NamespaceInfo.Namespace 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 namespace reference.

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

[ConfigurationPropertyAttribute("namespace", IsRequired = true, 
	IsKey = true, DefaultValue = "")]
[StringValidatorAttribute(MinLength = 1)]
public string Namespace { get; set; }

Property Value

Type: System.String

A string that specifies the name of the namespace.

No validation is performed to verify that the namespace reference is valid.

The following code example shows how to use the Namespace property. This code example is part of a larger example provided for the PagesSection class.

// Set the Namespace property.
namespaceInfo.Namespace = "System.Collections";

.NET Framework
Available since 2.0
Return to top
Show: