Share via


ContractDescription.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

属性值

协定的命名空间。

例外

该值设置为 null

示例

string namespc = cd.Namespace;
Console.WriteLine("\tNamespace: {0}", namespc);
Dim namespc As String = cd.Namespace
Console.WriteLine(Constants.vbTab & "Namespace: {0}", namespc)

注解

命名空间可为空字符串 ("")。

适用于