Metodo AdapterService.GetAdapter<TAdapterType> (Type)

Restituisce un adattatore del tipo di adattatore specificato per l'elemento specificato.

Spazio dei nomi:  Microsoft.Windows.Design.Services
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Sintassi

'Dichiarazione
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
JScript non supporta i tipi o i metodi generici.

Parametri di tipo

  • TAdapterType
    Tipo di adattatore.

Parametri

  • itemType
    Tipo: System.Type
    Elemento per cui ottenere l'adattatore.

Valore restituito

Tipo: TAdapterType
Oggetto Adapter di tipo TAdapterType per itemType.

Sicurezza di .NET Framework

Vedere anche

Riferimenti

AdapterService Classe

Overload GetAdapter

Spazio dei nomi Microsoft.Windows.Design.Services

Adapter

ParentAdapter

Altre risorse

Informazioni sull'estensibilità Progettazione WPF