共用方式為


CommandEventHandler Delegate

Represents the delegate for the event handler for command events.

Namespace:  Microsoft.VisualStudio.TestTools.Vsip
Assembly:  Microsoft.VisualStudio.QualityTools.Vsip (in Microsoft.VisualStudio.QualityTools.Vsip.dll)

Syntax

'宣告
Public Delegate Function CommandEventHandler ( _
    sender As Object, _
    e As CommandEventArgs _
) As CommandResult
public delegate CommandResult CommandEventHandler(
    Object sender,
    CommandEventArgs e
)
public delegate CommandResult^ CommandEventHandler(
    Object^ sender, 
    CommandEventArgs^ e
)
type CommandEventHandler = 
    delegate of 
        sender:Object * 
        e:CommandEventArgs -> CommandResult
JScript does not support delegates.

Parameters

  • sender
    Type: System.Object
    The object that initiated the event.

Return Value

Type: Microsoft.VisualStudio.TestTools.Vsip.CommandResult
The event handler for command events.

See Also

Reference

Microsoft.VisualStudio.TestTools.Vsip Namespace