ProjectHostItem.IVstaProjectHostItem.AddEventHandler Method
For a description of this member, see IVstaProjectHostItem.AddEventHandler.
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
Private Sub AddEventHandler ( _
target As CodeExpression, _
eventName As String, _
listener As CodeExpression, _
method As CodeMemberMethod _
) Implements IVstaProjectHostItem.AddEventHandler
'Usage
Dim instance As ProjectHostItem
Dim target As CodeExpression
Dim eventName As String
Dim listener As CodeExpression
Dim method As CodeMemberMethod
CType(instance, IVstaProjectHostItem).AddEventHandler(target, _
eventName, listener, method)
void IVstaProjectHostItem.AddEventHandler(
CodeExpression target,
string eventName,
CodeExpression listener,
CodeMemberMethod method
)
private:
virtual void AddEventHandler(
CodeExpression^ target,
String^ eventName,
CodeExpression^ listener,
CodeMemberMethod^ method
) sealed = IVstaProjectHostItem::AddEventHandler
JScript does not support explicit interface implementations.
Parameters
- target
Type: System.CodeDom.CodeExpression
- eventName
Type: System.String
- listener
Type: System.CodeDom.CodeExpression
- method
Type: System.CodeDom.CodeMemberMethod
Implements
IVstaProjectHostItem.AddEventHandler(CodeExpression, String, CodeExpression, CodeMemberMethod)
Remarks
This member is an explicit interface implementation. It can be used only when the ProjectHostItem instance is cast to an IVstaProjectHostItem interface.
.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
Microsoft.VisualStudio.Tools.Applications.DesignTime Namespace