CodeDomEventBindingService.CreateUniqueMethodName Method

Creates a unique method name for the event.

Namespace:  Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

Syntax

'宣言
Protected Overrides Function CreateUniqueMethodName ( _
    component As IComponent, _
    e As EventDescriptor _
) As String
'使用
Dim component As IComponent
Dim e As EventDescriptor
Dim returnValue As String

returnValue = Me.CreateUniqueMethodName(component, _
    e)
protected override string CreateUniqueMethodName(
    IComponent component,
    EventDescriptor e
)
protected:
virtual String^ CreateUniqueMethodName(
    IComponent^ component, 
    EventDescriptor^ e
) override
protected override function CreateUniqueMethodName(
    component : IComponent, 
    e : EventDescriptor
) : String

Parameters

Return Value

Type: System.String

The unique name.

Remarks

This method creates a name of the format "<component_name>_<event_name>". When this conflicts with an existing method it will append "_#" to the end of the method, incrementing the number at the end until a unique method name is obtained.

Permissions

See Also

Reference

CodeDomEventBindingService Class

CodeDomEventBindingService Members

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