CodeGotoStatement 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 CodeGotoStatement 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| CodeGotoStatement() |
初始化 CodeGotoStatement 類別的新執行個體。 |
| CodeGotoStatement(String) |
使用指定的標籤名稱初始化類別的新實例 CodeGotoStatement 。 |
CodeGotoStatement()
初始化 CodeGotoStatement 類別的新執行個體。
public:
CodeGotoStatement();
public CodeGotoStatement();
Public Sub New ()
備註
如果你使用這個建構子,也必須設定 Label 屬性來表示繼續執行程式的標籤名稱。
適用於
CodeGotoStatement(String)
使用指定的標籤名稱初始化類別的新實例 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
繼續執行程式的標籤名稱。
例外狀況
label 為 null。