Bagikan melalui


NamespaceInfo.Namespace Properti

Definisi

Mendapatkan atau mengatur referensi namespace.

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

Nilai Properti

String yang menentukan nama namespace layanan.

Atribut

Contoh

Contoh kode berikut menunjukkan cara menggunakan Namespace properti . Contoh kode ini adalah bagian dari contoh yang lebih besar yang disediakan untuk PagesSection kelas .

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

Keterangan

Tidak ada validasi yang dilakukan untuk memverifikasi bahwa referensi namespace valid.

Berlaku untuk

Lihat juga