Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
'Declaration
Protected Overrides Function CreateUniqueMethodName ( _
component As IComponent, _
e As EventDescriptor _
) As String
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
Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom Namespace