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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.Services Namespace