RegistrationBuilder.ForTypesDerivedFrom 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| ForTypesDerivedFrom(Type) |
取得一個物件,代表適用於所有實作該類型但不適用於指定類型的規則。 |
| ForTypesDerivedFrom<T>() |
取得一個強型別物件,代表適用於所有實作該類型但不適用於指定型別的規則。 |
ForTypesDerivedFrom(Type)
取得一個物件,代表適用於所有實作該類型但不適用於指定類型的規則。
public:
System::ComponentModel::Composition::Registration::PartBuilder ^ ForTypesDerivedFrom(Type ^ type);
public System.ComponentModel.Composition.Registration.PartBuilder ForTypesDerivedFrom(Type type);
member this.ForTypesDerivedFrom : Type -> System.ComponentModel.Composition.Registration.PartBuilder
Public Function ForTypesDerivedFrom (type As Type) As PartBuilder
參數
- type
- Type
「類型」。
傳回
一個代表規則的物件。
適用於
ForTypesDerivedFrom<T>()
取得一個強型別物件,代表適用於所有實作該類型但不適用於指定型別的規則。
public:
generic <typename T>
System::ComponentModel::Composition::Registration::PartBuilder<T> ^ ForTypesDerivedFrom();
public System.ComponentModel.Composition.Registration.PartBuilder<T> ForTypesDerivedFrom<T>();
member this.ForTypesDerivedFrom : unit -> System.ComponentModel.Composition.Registration.PartBuilder<'T>
Public Function ForTypesDerivedFrom(Of T) () As PartBuilder(Of T)
類型參數
- T
「類型」。
傳回
一個強型別的物件,代表規則。