CodeGotoStatement::Label Property

 

Gets or sets the name of the label at which to continue program execution.

Namespace:   System.CodeDom
Assembly:  System (in System.dll)

public:
property String^ Label {
	String^ get();
	void set(String^ value);
}

Property Value

Type: System::String^

A string that indicates the name of the label at which to continue program execution.

Exception Condition
ArgumentNullException

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.

A label can be represented by a CodeLabeledStatement.

.NET Framework
Available since 1.1
Return to top
Show: