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
'Dichiarazione
Protected Overrides Function CreateUniqueMethodName ( _
component As IComponent, _
e As EventDescriptor _
) As String
'Utilizzo
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
abstract CreateUniqueMethodName :
component:IComponent *
e:EventDescriptor -> string
override CreateUniqueMethodName :
component:IComponent *
e:EventDescriptor -> string
protected override function CreateUniqueMethodName(
component : IComponent,
e : EventDescriptor
) : String
Parameters
- component
Type: System.ComponentModel.IComponent
IComponent.
Return Value
Type: System.String
The unique name.
Remarks
This method creates a name of the format component_name_eventname. 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.
.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