Freigeben über


NamespaceInfo.Namespace Eigenschaft

Definition

Ruft den Namespaceverweis ab oder legt den Namespaceverweis fest.

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

Eigenschaftswert

Eine Zeichenfolge, die den Namen des Namespace angibt.

Attribute

Beispiele

Das folgende Codebeispiel zeigt, wie die Namespace Eigenschaft verwendet wird. Dieses Codebeispiel ist Teil eines größeren Beispiels, das für die PagesSection Klasse bereitgestellt wird.

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

Hinweise

Es wird keine Überprüfung durchgeführt, um zu überprüfen, ob der Namespaceverweis gültig ist.

Gilt für:

Weitere Informationen