ExportBuilder.AsContractType 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
AsContractType(Type) |
指定匯出應使用指定的合約類型。 |
AsContractType<T>() |
指定匯出應使用指定的合約類型。 |
AsContractType(Type)
指定匯出應使用指定的合約類型。
public:
System::ComponentModel::Composition::Registration::ExportBuilder ^ AsContractType(Type ^ type);
public System.ComponentModel.Composition.Registration.ExportBuilder AsContractType (Type type);
member this.AsContractType : Type -> System.ComponentModel.Composition.Registration.ExportBuilder
Public Function AsContractType (type As Type) As ExportBuilder
參數
- type
- Type
要使用的合約類型。
傳回
目前的物件,用於允許鏈結。
例外狀況
type
為 null
。
適用於
AsContractType<T>()
指定匯出應使用指定的合約類型。
public:
generic <typename T>
System::ComponentModel::Composition::Registration::ExportBuilder ^ AsContractType();
public System.ComponentModel.Composition.Registration.ExportBuilder AsContractType<T> ();
member this.AsContractType : unit -> System.ComponentModel.Composition.Registration.ExportBuilder
Public Function AsContractType(Of T) () As ExportBuilder
類型參數
- T
要使用的合約的型別。
傳回
目前的物件,用於允許鏈結。