CodeGotoStatement 建構函式

定義

初始化 CodeGotoStatement 類別的新執行個體。

多載

CodeGotoStatement()

初始化 CodeGotoStatement 類別的新執行個體。

CodeGotoStatement(String)

使用指定的標記名稱,初始化 CodeGotoStatement 類別的新執行個體。

CodeGotoStatement()

來源:
CodeGotoStatement.cs
來源:
CodeGotoStatement.cs
來源:
CodeGotoStatement.cs

初始化 CodeGotoStatement 類別的新執行個體。

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

備註

如果您使用這個建構函式, Label 您也必須設定 屬性,以指出要繼續執行程式之標籤的名稱。

適用於

CodeGotoStatement(String)

來源:
CodeGotoStatement.cs
來源:
CodeGotoStatement.cs
來源:
CodeGotoStatement.cs

使用指定的標記名稱,初始化 CodeGotoStatement 類別的新執行個體。

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

繼續程式執行所在的標記名稱。

例外狀況

Labelnull

另請參閱

適用於