Share via


IVstaProjectHostItem.IsEventHandled Method

Returns a value that indicates whether the specified event is handled in the user code file.

Namespace:  Microsoft.VisualStudio.Tools.Applications.DesignTime.Interop
Assembly:  Microsoft.VisualStudio.Tools.Applications.DesignTime.v9.0 (in Microsoft.VisualStudio.Tools.Applications.DesignTime.v9.0.dll)

Syntax

'Declaration
Function IsEventHandled ( _
    target As CodeExpression, _
    eventName As String, _
    <OutAttribute> ByRef handlerName As String _
) As Boolean
'Usage
Dim instance As IVstaProjectHostItem 
Dim target As CodeExpression 
Dim eventName As String 
Dim handlerName As String 
Dim returnValue As Boolean 

returnValue = instance.IsEventHandled(target, _
    eventName, handlerName)
bool IsEventHandled(
    CodeExpression target,
    string eventName,
    out string handlerName
)
bool IsEventHandled(
    CodeExpression^ target, 
    String^ eventName, 
    [OutAttribute] String^% handlerName
)
function IsEventHandled(
    target : CodeExpression, 
    eventName : String, 
    handlerName : String
) : boolean

Parameters

  • handlerName
    Type: System.String%

    When this method returns, handlerName contains the name of the event handler. If there are multiple event handlers, the name of the first one encountered is returned. This parameter is passed uninitialized.

Return Value

Type: System.Boolean
true if the event is handled; otherwise, false.

.NET Framework Security

See Also

Reference

IVstaProjectHostItem Interface

IVstaProjectHostItem Members

Microsoft.VisualStudio.Tools.Applications.DesignTime.Interop Namespace