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)

備註

命名空間可以是空白字串 ("")。

適用於