Share via


ServiceDescription.Namespace 屬性

定義

取得或設定服務的命名空間。

public:
 property System::String ^ Namespace { System::String ^ get(); void set(System::String ^ value); };
public string Namespace { get; set; }
member this.Namespace : string with get, set
Public Property Namespace As String

屬性值

服務的命名空間。

範例

string namespc = svcDesc.Namespace;
Console.WriteLine("Service Description namespace: {0}", namespc);
Dim namespc = svcDesc.Namespace
Console.WriteLine("Service Description namespace: {0}", namespc)

備註

匯出 WSDL 中繼資料時,會 Namespace 對應至 (限定 name) 屬性的 Web 服務開發語言 (WSDL <service>) 元素命名空間名稱部分。

適用於