CodeGotoStatement.Label 属性

定义

获取或设置程序继续执行处的标签名称。Gets or sets the name of the label at which to continue program execution.

public:
 property System::String ^ Label { System::String ^ get(); void set(System::String ^ value); };
public string Label { get; set; }
member this.Label : string with get, set
Public Property Label As String

属性值

String

指示程序继续执行处的标签名称的字符串。A string that indicates the name of the label at which to continue program execution.

例外

不能设置此标签,因为 valuenull 或为空字符串。The label cannot be set because value is null or an empty string.

注解

此属性指示继续执行程序的标签名称。This property indicates the name of the label at which to continue program execution.

标签可以由表示 CodeLabeledStatementA label can be represented by a CodeLabeledStatement.

适用于

另请参阅