EventBindingService.ShowCode 方法

定義

顯示使用者程式碼。

多載

名稱 Description
ShowCode()

顯示使用者程式碼。

ShowCode(Int32)

在指定的行號處顯示使用者代碼。

ShowCode(IComponent, EventDescriptor, String)

顯示指定方法的使用者程式碼。

ShowCode()

來源:
EventBindingService.cs
來源:
EventBindingService.cs
來源:
EventBindingService.cs
來源:
EventBindingService.cs
來源:
EventBindingService.cs

顯示使用者程式碼。

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

傳回

true如果可以顯示該代碼;否則,。 false

備註

ShowCode 方法不會顯示任何特定的程式碼;通常會顯示使用者最後輸入的程式碼。

適用於

ShowCode(Int32)

來源:
EventBindingService.cs
來源:
EventBindingService.cs
來源:
EventBindingService.cs
來源:
EventBindingService.cs
來源:
EventBindingService.cs

在指定的行號處顯示使用者代碼。

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

參數

lineNumber
Int32

要顯示的行號。

傳回

true如果可以顯示該代碼;否則,。 false

備註

行號是一基底的。

適用於

ShowCode(IComponent, EventDescriptor, String)

來源:
EventBindingService.cs
來源:
EventBindingService.cs
來源:
EventBindingService.cs
來源:
EventBindingService.cs
來源:
EventBindingService.cs

顯示指定方法的使用者程式碼。

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

參數

component
IComponent

方法所綁定的組件。

e
EventDescriptor

這是 EventDescriptor 給事件處理者的。

methodName
String

顯示程式碼的方法名稱。

傳回

true如果可以顯示該代碼;否則,。 false

備註

ShowCode 方法會顯示使用者程式碼的主體及指定的方法名稱。

另請參閱

適用於