CodeGotoStatement.Label 属性

定义

获取或设置要继续执行程序的标签的名称。

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

属性值

一个字符串,指示要继续执行程序的标签的名称。

例外

无法设置标签,因为该值为 null 空字符串。

注解

此属性指示要继续执行程序时所在的标签的名称。

标签可以由一个 CodeLabeledStatement

适用于

另请参阅