Metodo AdapterService.GetAdapter (Type, 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 MustOverride Function GetAdapter ( _
    adapterType As Type, _
    itemType As Type _
) As Adapter
public abstract Adapter GetAdapter(
    Type adapterType,
    Type itemType
)
public:
virtual Adapter^ GetAdapter(
    Type^ adapterType, 
    Type^ itemType
) abstract
abstract GetAdapter : 
        adapterType:Type * 
        itemType:Type -> Adapter 
public abstract function GetAdapter(
    adapterType : Type, 
    itemType : Type
) : Adapter

Parametri

  • adapterType
    Tipo: System.Type
    Tipo di adattatore da restituire.
  • itemType
    Tipo: System.Type
    Elemento per cui ottenere l'adattatore.

Valore restituito

Tipo: Microsoft.Windows.Design.Interaction.Adapter
Oggetto Adapter di tipo adapterType per itemType.

Note

Questo metodo può restituire nullriferimento null (Nothing in Visual Basic) se l'elemento non offre tale adattatore.

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