EventBindingService.CreateUniqueMethodName Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a unique method name.
protected:
abstract System::String ^ CreateUniqueMethodName(System::ComponentModel::IComponent ^ component, System::ComponentModel::EventDescriptor ^ e);
protected abstract string CreateUniqueMethodName (System.ComponentModel.IComponent component, System.ComponentModel.EventDescriptor e);
abstract member CreateUniqueMethodName : System.ComponentModel.IComponent * System.ComponentModel.EventDescriptor -> string
Protected MustOverride Function CreateUniqueMethodName (component As IComponent, e As EventDescriptor) As String
Parameters
- component
- IComponent
The component for which the method name will be created.
The event to create a name for.
Returns
The unique method name.
Exceptions
component
or e
is null
.
Remarks
The name returned by the CreateUniqueMethodName method must be compatible with the script language being used and it must not conflict with any other name in your code.
Applies to
See also
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.