Share via


ContractDescription.ContractType 屬性

定義

取得或設定合約描述指定的合約型別。

public:
 property Type ^ ContractType { Type ^ get(); void set(Type ^ value); };
public Type ContractType { get; set; }
member this.ContractType : Type with get, set
Public Property ContractType As Type

屬性值

合約描述指定的合約的 Type

範例

Type contractType = cd.ContractType;
Console.WriteLine("\tContract type: {0}", contractType.ToString());
Dim contractType As Type = cd.ContractType
Console.WriteLine(Constants.vbTab & "Contract type: {0}", contractType.ToString())

備註

ContractType 屬性不是可序列化的,因此只有當描述繫結至執行階段時才可使用。 它無法匯入或匯出為中繼資料的一部分。

適用於