CodeLabeledStatement 建構函式

定義

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

多載

CodeLabeledStatement()

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

CodeLabeledStatement(String)

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

CodeLabeledStatement(String, CodeStatement)

使用指定的標記和陳述式,初始化 CodeLabeledStatement 類別的新執行個體。Initializes a new instance of the CodeLabeledStatement class using the specified label name and statement.

CodeLabeledStatement()

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

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

CodeLabeledStatement(String)

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

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

參數

label
String

標籤名稱。The name of the label.

CodeLabeledStatement(String, CodeStatement)

使用指定的標記和陳述式,初始化 CodeLabeledStatement 類別的新執行個體。Initializes a new instance of the CodeLabeledStatement class using the specified label name and statement.

public:
 CodeLabeledStatement(System::String ^ label, System::CodeDom::CodeStatement ^ statement);
public CodeLabeledStatement (string label, System.CodeDom.CodeStatement statement);
new System.CodeDom.CodeLabeledStatement : string * System.CodeDom.CodeStatement -> System.CodeDom.CodeLabeledStatement
Public Sub New (label As String, statement As CodeStatement)

參數

label
String

標籤名稱。The name of the label.

statement
CodeStatement

與標記相關的 CodeStatementThe CodeStatement to associate with the label.

適用於