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.

另请参阅

适用于