EventBindingService.ShowCode 方法

定義

顯示使用者程式碼。

多載

ShowCode()

顯示使用者程式碼。

ShowCode(Int32)

顯示指定行號處的使用者程式碼。

ShowCode(IComponent, EventDescriptor, String)

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

ShowCode()

顯示使用者程式碼。

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

傳回

如果可以顯示程式碼,則為 true,否則為 false

備註

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

適用於

ShowCode(Int32)

顯示指定行號處的使用者程式碼。

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)

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

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 會顯示具有指定方法名稱的用戶程式代碼主體。

另請參閱

適用於