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