NativeMethods.IEventHandler.AddHandler Method
Adds an event handler.
Namespace: Microsoft.VisualStudio
Assembly: Microsoft.VisualStudio.Data.Schema.Project (in Microsoft.VisualStudio.Data.Schema.Project.dll)
Syntax
'Declaration
Function AddHandler ( _
bstrEventName As String _
) As Integer
'Usage
Dim instance As NativeMethods..::..IEventHandler
Dim bstrEventName As String
Dim returnValue As Integer
returnValue = instance.AddHandler(bstrEventName)
int AddHandler(
string bstrEventName
)
int AddHandler(
String^ bstrEventName
)
function AddHandler(
bstrEventName : String
) : int
abstract AddHandler :
bstrEventName:string -> int
Parameters
- bstrEventName
Type: System.String
The event name
Return Value
Type: System.Int32
.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.
See Also
Reference
NativeMethods.IEventHandler Interface