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

屬性值

字串,表示繼續程式執行的標記名稱。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.

適用於

另請參閱