Udostępnij za pośrednictwem


AdapterService.GetAdapter<TAdapterType> Method (Type)

Returns an adapter of the specified adapter type for the specified item.

Namespace:  Microsoft.Windows.Design.Services
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
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 does not support generic types or methods.

Type Parameters

  • TAdapterType
    The type of adapter.

Parameters

  • itemType
    Type: System.Type
    The item to get the adapter for.

Return Value

Type: TAdapterType
An Adapter of type TAdapterType for itemType.

.NET Framework Security

See Also

Reference

AdapterService Class

GetAdapter Overload

Microsoft.Windows.Design.Services Namespace

Adapter

ParentAdapter

Other Resources

Understanding WPF Designer Extensibility