SyntaxFactory.GotoStatement Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GotoStatement(SyntaxKind, ExpressionSyntax) |
Creates a new GotoStatementSyntax instance. |
GotoStatement(SyntaxKind, SyntaxToken, ExpressionSyntax) |
Creates a new GotoStatementSyntax instance. |
GotoStatement(SyntaxKind, SyntaxList<AttributeListSyntax>, SyntaxToken, ExpressionSyntax) |
Creates a new GotoStatementSyntax instance. |
GotoStatement(SyntaxKind, SyntaxToken, SyntaxToken, ExpressionSyntax, SyntaxToken) |
Creates a new GotoStatementSyntax instance. |
GotoStatement(SyntaxKind, SyntaxList<AttributeListSyntax>, SyntaxToken, SyntaxToken, ExpressionSyntax, SyntaxToken) |
Creates a new GotoStatementSyntax instance. |
GotoStatement(SyntaxKind, ExpressionSyntax)
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
Creates a new GotoStatementSyntax instance.
public static Microsoft.CodeAnalysis.CSharp.Syntax.GotoStatementSyntax GotoStatement (Microsoft.CodeAnalysis.CSharp.SyntaxKind kind, Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax expression = default);
public static Microsoft.CodeAnalysis.CSharp.Syntax.GotoStatementSyntax GotoStatement (Microsoft.CodeAnalysis.CSharp.SyntaxKind kind, Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax? expression = default);
static member GotoStatement : Microsoft.CodeAnalysis.CSharp.SyntaxKind * Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.GotoStatementSyntax
Public Shared Function GotoStatement (kind As SyntaxKind, Optional expression As ExpressionSyntax = Nothing) As GotoStatementSyntax
Parameters
- kind
- SyntaxKind
- expression
- ExpressionSyntax
Returns
Applies to
GotoStatement(SyntaxKind, SyntaxToken, ExpressionSyntax)
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- GotoStatementSyntax.cs
- Source:
- GotoStatementSyntax.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- GotoStatementSyntax.cs
- Source:
- GotoStatementSyntax.cs
- Source:
- GotoStatementSyntax.cs
- Source:
- GotoStatementSyntax.cs
- Source:
- GotoStatementSyntax.cs
- Source:
- GotoStatementSyntax.cs
- Source:
- GotoStatementSyntax.cs
- Source:
- GotoStatementSyntax.cs
- Source:
- GotoStatementSyntax.cs
- Source:
- GotoStatementSyntax.cs
- Source:
- GotoStatementSyntax.cs
- Source:
- GotoStatementSyntax.cs
- Source:
- GotoStatementSyntax.cs
- Source:
- GotoStatementSyntax.cs
Creates a new GotoStatementSyntax instance.
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::GotoStatementSyntax ^ GotoStatement(Microsoft::CodeAnalysis::CSharp::SyntaxKind kind, Microsoft::CodeAnalysis::SyntaxToken caseOrDefaultKeyword, Microsoft::CodeAnalysis::CSharp::Syntax::ExpressionSyntax ^ expression);
public static Microsoft.CodeAnalysis.CSharp.Syntax.GotoStatementSyntax GotoStatement (Microsoft.CodeAnalysis.CSharp.SyntaxKind kind, Microsoft.CodeAnalysis.SyntaxToken caseOrDefaultKeyword, Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax expression);
public static Microsoft.CodeAnalysis.CSharp.Syntax.GotoStatementSyntax GotoStatement (Microsoft.CodeAnalysis.CSharp.SyntaxKind kind, Microsoft.CodeAnalysis.SyntaxToken caseOrDefaultKeyword, Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax? expression);
static member GotoStatement : Microsoft.CodeAnalysis.CSharp.SyntaxKind * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.GotoStatementSyntax
Public Shared Function GotoStatement (kind As SyntaxKind, caseOrDefaultKeyword As SyntaxToken, expression As ExpressionSyntax) As GotoStatementSyntax
Parameters
- kind
- SyntaxKind
- caseOrDefaultKeyword
- SyntaxToken
- expression
- ExpressionSyntax
Returns
Applies to
GotoStatement(SyntaxKind, SyntaxList<AttributeListSyntax>, SyntaxToken, ExpressionSyntax)
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
Creates a new GotoStatementSyntax instance.
public static Microsoft.CodeAnalysis.CSharp.Syntax.GotoStatementSyntax GotoStatement (Microsoft.CodeAnalysis.CSharp.SyntaxKind kind, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> attributeLists, Microsoft.CodeAnalysis.SyntaxToken caseOrDefaultKeyword, Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax? expression);
static member GotoStatement : Microsoft.CodeAnalysis.CSharp.SyntaxKind * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.GotoStatementSyntax
Public Shared Function GotoStatement (kind As SyntaxKind, attributeLists As SyntaxList(Of AttributeListSyntax), caseOrDefaultKeyword As SyntaxToken, expression As ExpressionSyntax) As GotoStatementSyntax
Parameters
- kind
- SyntaxKind
- attributeLists
- SyntaxList<AttributeListSyntax>
- caseOrDefaultKeyword
- SyntaxToken
- expression
- ExpressionSyntax
Returns
Applies to
GotoStatement(SyntaxKind, SyntaxToken, SyntaxToken, ExpressionSyntax, SyntaxToken)
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- GotoStatementSyntax.cs
- Source:
- GotoStatementSyntax.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- GotoStatementSyntax.cs
- Source:
- GotoStatementSyntax.cs
- Source:
- GotoStatementSyntax.cs
- Source:
- GotoStatementSyntax.cs
- Source:
- GotoStatementSyntax.cs
- Source:
- GotoStatementSyntax.cs
- Source:
- GotoStatementSyntax.cs
- Source:
- GotoStatementSyntax.cs
- Source:
- GotoStatementSyntax.cs
- Source:
- GotoStatementSyntax.cs
- Source:
- GotoStatementSyntax.cs
- Source:
- GotoStatementSyntax.cs
- Source:
- GotoStatementSyntax.cs
- Source:
- GotoStatementSyntax.cs
Creates a new GotoStatementSyntax instance.
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::GotoStatementSyntax ^ GotoStatement(Microsoft::CodeAnalysis::CSharp::SyntaxKind kind, Microsoft::CodeAnalysis::SyntaxToken gotoKeyword, Microsoft::CodeAnalysis::SyntaxToken caseOrDefaultKeyword, Microsoft::CodeAnalysis::CSharp::Syntax::ExpressionSyntax ^ expression, Microsoft::CodeAnalysis::SyntaxToken semicolonToken);
public static Microsoft.CodeAnalysis.CSharp.Syntax.GotoStatementSyntax GotoStatement (Microsoft.CodeAnalysis.CSharp.SyntaxKind kind, Microsoft.CodeAnalysis.SyntaxToken gotoKeyword, Microsoft.CodeAnalysis.SyntaxToken caseOrDefaultKeyword, Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax expression, Microsoft.CodeAnalysis.SyntaxToken semicolonToken);
public static Microsoft.CodeAnalysis.CSharp.Syntax.GotoStatementSyntax GotoStatement (Microsoft.CodeAnalysis.CSharp.SyntaxKind kind, Microsoft.CodeAnalysis.SyntaxToken gotoKeyword, Microsoft.CodeAnalysis.SyntaxToken caseOrDefaultKeyword, Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax? expression, Microsoft.CodeAnalysis.SyntaxToken semicolonToken);
static member GotoStatement : Microsoft.CodeAnalysis.CSharp.SyntaxKind * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.CSharp.Syntax.GotoStatementSyntax
Public Shared Function GotoStatement (kind As SyntaxKind, gotoKeyword As SyntaxToken, caseOrDefaultKeyword As SyntaxToken, expression As ExpressionSyntax, semicolonToken As SyntaxToken) As GotoStatementSyntax
Parameters
- kind
- SyntaxKind
- gotoKeyword
- SyntaxToken
- caseOrDefaultKeyword
- SyntaxToken
- expression
- ExpressionSyntax
- semicolonToken
- SyntaxToken
Returns
Applies to
GotoStatement(SyntaxKind, SyntaxList<AttributeListSyntax>, SyntaxToken, SyntaxToken, ExpressionSyntax, SyntaxToken)
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
Creates a new GotoStatementSyntax instance.
public static Microsoft.CodeAnalysis.CSharp.Syntax.GotoStatementSyntax GotoStatement (Microsoft.CodeAnalysis.CSharp.SyntaxKind kind, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> attributeLists, Microsoft.CodeAnalysis.SyntaxToken gotoKeyword, Microsoft.CodeAnalysis.SyntaxToken caseOrDefaultKeyword, Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax? expression, Microsoft.CodeAnalysis.SyntaxToken semicolonToken);
static member GotoStatement : Microsoft.CodeAnalysis.CSharp.SyntaxKind * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.CSharp.Syntax.GotoStatementSyntax
Public Shared Function GotoStatement (kind As SyntaxKind, attributeLists As SyntaxList(Of AttributeListSyntax), gotoKeyword As SyntaxToken, caseOrDefaultKeyword As SyntaxToken, expression As ExpressionSyntax, semicolonToken As SyntaxToken) As GotoStatementSyntax
Parameters
- kind
- SyntaxKind
- attributeLists
- SyntaxList<AttributeListSyntax>
- gotoKeyword
- SyntaxToken
- caseOrDefaultKeyword
- SyntaxToken
- expression
- ExpressionSyntax
- semicolonToken
- SyntaxToken