共用方式為


SyntaxFactory.OnErrorGoToLabelStatement Method

Definition

Overloads

OnErrorGoToLabelStatement(LabelSyntax)

Represents an OnError Goto statement.

OnErrorGoToLabelStatement(SyntaxToken, SyntaxToken, SyntaxToken, SyntaxToken, LabelSyntax)

Represents an OnError Goto statement.

OnErrorGoToLabelStatement(LabelSyntax)

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

Represents an OnError Goto statement.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::OnErrorGoToStatementSyntax ^ OnErrorGoToLabelStatement(Microsoft::CodeAnalysis::VisualBasic::Syntax::LabelSyntax ^ label);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.OnErrorGoToStatementSyntax OnErrorGoToLabelStatement (Microsoft.CodeAnalysis.VisualBasic.Syntax.LabelSyntax label);
static member OnErrorGoToLabelStatement : Microsoft.CodeAnalysis.VisualBasic.Syntax.LabelSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.OnErrorGoToStatementSyntax
Public Shared Function OnErrorGoToLabelStatement (label As LabelSyntax) As OnErrorGoToStatementSyntax

Parameters

label
LabelSyntax

The name of the label. If the label is a line number, 0 or -1, wraps an IntegerLiteralToken that is the line number, otherwise, wraps an Identifier.

Returns

Applies to

OnErrorGoToLabelStatement(SyntaxToken, SyntaxToken, SyntaxToken, SyntaxToken, LabelSyntax)

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

Represents an OnError Goto statement.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::OnErrorGoToStatementSyntax ^ OnErrorGoToLabelStatement(Microsoft::CodeAnalysis::SyntaxToken onKeyword, Microsoft::CodeAnalysis::SyntaxToken errorKeyword, Microsoft::CodeAnalysis::SyntaxToken goToKeyword, Microsoft::CodeAnalysis::SyntaxToken minus, Microsoft::CodeAnalysis::VisualBasic::Syntax::LabelSyntax ^ label);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.OnErrorGoToStatementSyntax OnErrorGoToLabelStatement (Microsoft.CodeAnalysis.SyntaxToken onKeyword, Microsoft.CodeAnalysis.SyntaxToken errorKeyword, Microsoft.CodeAnalysis.SyntaxToken goToKeyword, Microsoft.CodeAnalysis.SyntaxToken minus, Microsoft.CodeAnalysis.VisualBasic.Syntax.LabelSyntax label);
static member OnErrorGoToLabelStatement : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.VisualBasic.Syntax.LabelSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.OnErrorGoToStatementSyntax
Public Shared Function OnErrorGoToLabelStatement (onKeyword As SyntaxToken, errorKeyword As SyntaxToken, goToKeyword As SyntaxToken, minus As SyntaxToken, label As LabelSyntax) As OnErrorGoToStatementSyntax

Parameters

onKeyword
SyntaxToken

The "On" keyword

errorKeyword
SyntaxToken

The "Error" keyword.

goToKeyword
SyntaxToken

The "GoTo" keyword

minus
SyntaxToken

An optional minus for On Error Goto -1

label
LabelSyntax

The name of the label. If the label is a line number, 0 or -1, wraps an IntegerLiteralToken that is the line number, otherwise, wraps an Identifier.

Returns

Applies to