CodeGotoStatement 建構函式

定義

初始化 CodeGotoStatement 類別的新執行個體。Initializes a new instance of the CodeGotoStatement class.

多載

CodeGotoStatement()

初始化 CodeGotoStatement 類別的新執行個體。Initializes a new instance of the CodeGotoStatement class.

CodeGotoStatement(String)

使用指定的標記名稱,初始化 CodeGotoStatement 類別的新執行個體。Initializes a new instance of the CodeGotoStatement class using the specified label name.

CodeGotoStatement()

初始化 CodeGotoStatement 類別的新執行個體。Initializes a new instance of the CodeGotoStatement class.

public:
 CodeGotoStatement();
public CodeGotoStatement ();
Public Sub New ()

備註

如果您使用此函式, 您也必須Label設定屬性來指示要繼續執行程式的標籤名稱。If you use this constructor you must also set the Label property to indicate the name of the label at which to continue program execution.

CodeGotoStatement(String)

使用指定的標記名稱,初始化 CodeGotoStatement 類別的新執行個體。Initializes a new instance of the CodeGotoStatement class using the specified label name.

public:
 CodeGotoStatement(System::String ^ label);
public CodeGotoStatement (string label);
new System.CodeDom.CodeGotoStatement : string -> System.CodeDom.CodeGotoStatement
Public Sub New (label As String)

參數

label
String

繼續程式執行所在的標記名稱。The name of the label at which to continue program execution.

例外狀況

LabelnullLabel is null.

另請參閱

適用於