Share via


AdapterService.GetAdapter Method (Type, 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 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

Parameters

  • adapterType
    Type: System.Type
    The type of adapter to return.
  • itemType
    Type: System.Type
    The item to get the adapter for.

Return Value

Type: Microsoft.Windows.Design.Interaction.Adapter
An Adapter of type adapterType for itemType.

Remarks

This method may return nulla null reference (Nothing in Visual Basic) if the item does not offer such an adapter.

.NET Framework Security

See Also

Reference

AdapterService Class

GetAdapter Overload

Microsoft.Windows.Design.Services Namespace

Adapter

ParentAdapter

Other Resources

Understanding WPF Designer Extensibility