Bagikan melalui


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

'Declaration
Protected Overrides Sub UseMethod ( _
    component As IComponent, _
    e As EventDescriptor, _
    methodName As String _
)
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

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

See Also

Reference

CodeDomEventBindingService Class

Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom Namespace