Redigera

Dela via


EventBindingService.CreateUniqueMethodName Method

Definition

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.

e
EventDescriptor

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