Szerkesztés

Megosztás a következőn keresztül:


EventBindingService.ShowCode Method

Definition

Displays user code.

Overloads

ShowCode()

Displays user code.

ShowCode(Int32)

Displays the user code at the given line number.

ShowCode(IComponent, EventDescriptor, String)

Displays the user code for the specified method.

ShowCode()

Displays user code.

protected:
 abstract bool ShowCode();
protected abstract bool ShowCode ();
abstract member ShowCode : unit -> bool
Protected MustOverride Function ShowCode () As Boolean

Returns

true if it is possible to display the code; otherwise, false.

Remarks

The ShowCode method does not display any particular code; generally it displays the last code the user typed.

Applies to

ShowCode(Int32)

Displays the user code at the given line number.

protected:
 abstract bool ShowCode(int lineNumber);
protected abstract bool ShowCode (int lineNumber);
abstract member ShowCode : int -> bool
Protected MustOverride Function ShowCode (lineNumber As Integer) As Boolean

Parameters

lineNumber
Int32

The line number to show.

Returns

true if it is possible to display the code; otherwise, false.

Remarks

Line numbers are one-based.

Applies to

ShowCode(IComponent, EventDescriptor, String)

Displays the user code for the specified method.

protected:
 abstract bool ShowCode(System::ComponentModel::IComponent ^ component, System::ComponentModel::EventDescriptor ^ e, System::String ^ methodName);
protected abstract bool ShowCode (System.ComponentModel.IComponent component, System.ComponentModel.EventDescriptor e, string methodName);
abstract member ShowCode : System.ComponentModel.IComponent * System.ComponentModel.EventDescriptor * string -> bool
Protected MustOverride Function ShowCode (component As IComponent, e As EventDescriptor, methodName As String) As Boolean

Parameters

component
IComponent

The component to which the method is bound.

e
EventDescriptor

The EventDescriptor for the event handler.

methodName
String

The name of the method for which to display code.

Returns

true if it is possible to display the code; otherwise, false.

Remarks

The ShowCode method displays the body of the user code with the given method name.

See also

Applies to