CommandAdapterMapService.CreateAdapter Method

Creates a new CommandAdapter instance for the specified invoker type.

Namespace: Microsoft.Practices.CompositeUI.Commands
Assembly: Microsoft.Practices.CompositeUI (in microsoft.practices.compositeui.dll)

Syntax

'Declaration
Public Function CreateAdapter ( _
    invokerType As Type _
) As CommandAdapter
'Usage
Dim instance As CommandAdapterMapService
Dim invokerType As Type
Dim returnValue As CommandAdapter

returnValue = instance.CreateAdapter(invokerType)
public CommandAdapter CreateAdapter (
    Type invokerType
)
public:
virtual CommandAdapter^ CreateAdapter (
    Type^ invokerType
) sealed
public final CommandAdapter CreateAdapter (
    Type invokerType
)
public final function CreateAdapter (
    invokerType : Type
) : CommandAdapter

Parameters

  • invokerType
    The invoker type to create an adapter for.

Return Value

A new CommandAdapter instance for the registered invoker; null if there is no adapter registration for the required invoker type.

See Also

Reference

CommandAdapterMapService Class
CommandAdapterMapService Members
Microsoft.Practices.CompositeUI.Commands Namespace