IEventHandler.HandlesEvent Method
When implemented by a derived class, determines whether a named handler is in the event handler collection.
Namespace: Microsoft.VisualStudio
Assemblies: Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Syntax
'Dichiarazione
Function HandlesEvent ( _
bstrEventName As String _
) As Boolean
'Utilizzo
Dim instance As IEventHandler
Dim bstrEventName As String
Dim returnValue As Boolean
returnValue = instance.HandlesEvent(bstrEventName)
bool HandlesEvent(
string bstrEventName
)
bool HandlesEvent(
String^ bstrEventName
)
abstract HandlesEvent :
bstrEventName:string -> bool
function HandlesEvent(
bstrEventName : String
) : boolean
Parameters
- bstrEventName
Type: System.String
The name of the evaluated handler.
Return Value
Type: System.Boolean
true if the handler is in the underlying handler collection, otherwise false.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.