CodeDomEventBindingService.UseMethod Method
Creates the method declaration for the given method name and event descriptor.
Namespace: Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
Syntax
'Dichiarazione
Protected Overrides Sub UseMethod ( _
component As IComponent, _
e As EventDescriptor, _
methodName As String _
)
'Utilizzo
Dim component As IComponent
Dim e As EventDescriptor
Dim methodName As String
Me.UseMethod(component, e, methodName)
protected override void UseMethod(
IComponent component,
EventDescriptor e,
string methodName
)
protected:
virtual void UseMethod(
IComponent^ component,
EventDescriptor^ e,
String^ methodName
) override
abstract UseMethod :
component:IComponent *
e:EventDescriptor *
methodName:string -> unit
override UseMethod :
component:IComponent *
e:EventDescriptor *
methodName:string -> unit
protected override function UseMethod(
component : IComponent,
e : EventDescriptor,
methodName : String
)
Parameters
- component
Type: System.ComponentModel.IComponent
IComponent.
- methodName
Type: System.String
The name of the method.
Remarks
This method first finds the method and then determines that the corresponding method was not already defined in the base class. It then generates the code and adds it to the list of members.
.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
CodeDomEventBindingService Class
CodeDomEventBindingService Members
Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom Namespace