Editar

Partilhar via


NamespaceInfo.Namespace Property

Definition

Gets or sets the namespace reference.

public:
 property System::String ^ Namespace { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("namespace", DefaultValue="", IsKey=true, IsRequired=true)]
[System.Configuration.StringValidator(MinLength=1)]
public string Namespace { get; set; }
[<System.Configuration.ConfigurationProperty("namespace", DefaultValue="", IsKey=true, IsRequired=true)>]
[<System.Configuration.StringValidator(MinLength=1)>]
member this.Namespace : string with get, set
Public Property Namespace As String

Property Value

A string that specifies the name of the namespace.

Attributes

Examples

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";
' Set the Namespace property.
namespaceInfo.Namespace = "System.Collections"

Remarks

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

Applies to

See also