Share via


SyntaxFactory.Label Method

Definition

Overloads

Label(SyntaxKind, String)

A label for a GoTo, Resume, or On Error statement. An identifier, line number, or next keyword.

Label(SyntaxKind, SyntaxToken)

A label for a GoTo, Resume, or On Error statement. An identifier, line number, or next keyword.

Label(SyntaxKind, String)

Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb

A label for a GoTo, Resume, or On Error statement. An identifier, line number, or next keyword.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::LabelSyntax ^ Label(Microsoft::CodeAnalysis::VisualBasic::SyntaxKind kind, System::String ^ labelToken);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.LabelSyntax Label (Microsoft.CodeAnalysis.VisualBasic.SyntaxKind kind, string labelToken);
static member Label : Microsoft.CodeAnalysis.VisualBasic.SyntaxKind * string -> Microsoft.CodeAnalysis.VisualBasic.Syntax.LabelSyntax
Public Shared Function Label (kind As SyntaxKind, labelToken As String) As LabelSyntax

Parameters

kind
SyntaxKind

A SyntaxKind representing the specific kind of LabelSyntax. One of IdentifierLabel, NumericLabel, NextLabel.

labelToken
String

The label name (identifier), line number (integer literal), or next keyword token.

Returns

Applies to

Label(SyntaxKind, SyntaxToken)

Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb

A label for a GoTo, Resume, or On Error statement. An identifier, line number, or next keyword.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::LabelSyntax ^ Label(Microsoft::CodeAnalysis::VisualBasic::SyntaxKind kind, Microsoft::CodeAnalysis::SyntaxToken labelToken);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.LabelSyntax Label (Microsoft.CodeAnalysis.VisualBasic.SyntaxKind kind, Microsoft.CodeAnalysis.SyntaxToken labelToken);
static member Label : Microsoft.CodeAnalysis.VisualBasic.SyntaxKind * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.VisualBasic.Syntax.LabelSyntax
Public Shared Function Label (kind As SyntaxKind, labelToken As SyntaxToken) As LabelSyntax

Parameters

kind
SyntaxKind

A SyntaxKind representing the specific kind of LabelSyntax. One of IdentifierLabel, NumericLabel, NextLabel.

labelToken
SyntaxToken

The label name (identifier), line number (integer literal), or next keyword token.

Returns

Applies to