Sdílet prostřednictvím


AdapterService.GetAdapter<TAdapterType> – metoda (Type)

Vrátí-li adaptér typu určeného adaptéru pro danou položku.

Obor názvů:  Microsoft.Windows.Design.Services
Sestavení:  Microsoft.Windows.Design.Interaction (v Microsoft.Windows.Design.Interaction.dll)

Syntaxe

'Deklarace
Public Function GetAdapter(Of TAdapterType As Adapter) ( _
    itemType As Type _
) As TAdapterType
public TAdapterType GetAdapter<TAdapterType>(
    Type itemType
)
where TAdapterType : Adapter
public:
generic<typename TAdapterType>
where TAdapterType : Adapter
TAdapterType GetAdapter(
    Type^ itemType
)
member GetAdapter : 
        itemType:Type -> 'TAdapterType  when 'TAdapterType : Adapter
Jazyk JScript nepodporuje obecné typy a metody.

Parametry typu

  • TAdapterType
    Typ adaptéru.

Parametry

Vrácená hodnota

Typ: TAdapterType
An Adapter of type TAdapterType for itemType.

Zabezpečení rozhraní .NET Framework

Viz také

Odkaz

AdapterService Třída

GetAdapter – přetížení

Microsoft.Windows.Design.Services – obor názvů

Adapter

ParentAdapter

Další zdroje

Understanding WPF Designer Extensibility