CodeDomEventBindingService Class

Definition

Important

This API is not CLS-compliant.

A service used to generate event-handling code.

public ref class CodeDomEventBindingService abstract : System::ComponentModel::Design::EventBindingService
[System.CLSCompliant(false)]
[System.Security.SecurityCritical]
public abstract class CodeDomEventBindingService : System.ComponentModel.Design.EventBindingService
[System.Security.SecurityCritical]
public abstract class CodeDomEventBindingService : System.ComponentModel.Design.EventBindingService
[<System.CLSCompliant(false)>]
[<System.Security.SecurityCritical>]
type CodeDomEventBindingService = class
    inherit EventBindingService
[<System.Security.SecurityCritical>]
type CodeDomEventBindingService = class
    inherit EventBindingService
Public MustInherit Class CodeDomEventBindingService
Inherits EventBindingService
Inheritance
CodeDomEventBindingService
Attributes

Constructors

CodeDomEventBindingService(IServiceProvider)

Initializes a new instance of CodeDomEventBindingService.

Properties

CodeDomAdapter

Gets the code DOM data adapter.

Methods

CreateUniqueMethodName(IComponent, EventDescriptor)

Creates a unique method name for the event.

FreeMethod(IComponent, EventDescriptor, String)

Removes the specified method from the code if no event handlers are using it and it is empty.

GetCompatibleMethods(EventDescriptor)

Gets all the methods in the code DOM that are compatible with the specified event descriptor.

ShowCode()

Displays the code in the document data in the editor window.

ShowCode(IComponent, EventDescriptor, String)

Shows the body of the user code with the given method name and event descriptor.

ShowCode(Int32)

Displays the code at the specified line.

UseMethod(IComponent, EventDescriptor, String)

Creates the method declaration for the given method name and event descriptor.

ValidateMethodName(String)

Validates the name of the method.

Applies to