Share via


NamespaceInfo.Namespace Eigenschaft

Definition

Ruft den Namespaceverweis ab oder legt diesen 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

Im folgenden Codebeispiel wird die Verwendung der Namespace-Eigenschaft veranschaulicht. 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