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 Web 服务开发语言 (WSDL) <service> 元素命名空间名称部分 (限定) name 属性。

适用于