ProjectHostItem.IsEventHandled Method

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

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

Syntax

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

returnValue = instance.IsEventHandled(target, _
    eventName, handlerName)
public bool IsEventHandled(
    CodeExpression target,
    string eventName,
    out string handlerName
)
public:
bool IsEventHandled(
    CodeExpression^ target, 
    String^ eventName, 
    [OutAttribute] String^% handlerName
)
public 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

ProjectHostItem Class

ProjectHostItem Members

Microsoft.VisualStudio.Tools.Applications.DesignTime Namespace