EventCommandAdapter Generic Class

A CommandAdapter that fires a .NET event when the command is fired.

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

Syntax

'Declaration
Public Class EventCommandAdapter(Of TInvoker)
    Inherits CommandAdapter
'Usage
Dim instance As EventCommandAdapter(Of TInvoker)
public class EventCommandAdapter<TInvoker> : CommandAdapter
generic<typename TInvoker>
public ref class EventCommandAdapter : public CommandAdapter
J# supports the use of generic types and methods, but not the declaration of new ones.
JScript does not support generic types and methods.

Remarks

This adapter allows a set of invokers of a given type TIvoker to fire a single Command.

Inheritance Hierarchy

System.Object
   Microsoft.Practices.CompositeUI.Commands.CommandAdapter
    Microsoft.Practices.CompositeUI.Commands.EventCommandAdapter
       Microsoft.Practices.CompositeUI.WinForms.ControlCommandAdapter
       Microsoft.Practices.CompositeUI.WinForms.ToolStripItemCommandAdapter

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

EventCommandAdapter Members
Microsoft.Practices.CompositeUI.Commands Namespace