AdapterService.GetAdapter<TAdapterType> (Método) (Type)

Devuelve un adaptador del tipo especificado para el elemento especificado.

Espacio de nombres:  Microsoft.Windows.Design.Services
Ensamblado:  Microsoft.Windows.Design.Interaction (en Microsoft.Windows.Design.Interaction.dll)

Sintaxis

'Declaración
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 no admite el uso de métodos ni tipos genéricos.

Parámetros de tipo

  • TAdapterType
    Tipo de adaptador.

Parámetros

  • itemType
    Tipo: System.Type
    Elemento para el que se va a obtener el adaptador.

Valor devuelto

Tipo: TAdapterType
Objeto Adapter de tipo TAdapterType para itemType.

Seguridad de .NET Framework

Vea también

Referencia

AdapterService Clase

GetAdapter (Sobrecarga)

Microsoft.Windows.Design.Services (Espacio de nombres)

Adapter

ParentAdapter

Otros recursos

Introducción a la extensibilidad de WPF Designer