Compartilhar via


SyntaxFactory.ThrowStatement Method

Definition

Overloads

ThrowStatement(ExpressionSyntax)

Creates a new ThrowStatementSyntax instance.

ThrowStatement(SyntaxList<AttributeListSyntax>, ExpressionSyntax)

Creates a new ThrowStatementSyntax instance.

ThrowStatement(SyntaxToken, ExpressionSyntax, SyntaxToken)

Creates a new ThrowStatementSyntax instance.

ThrowStatement(SyntaxList<AttributeListSyntax>, SyntaxToken, ExpressionSyntax, SyntaxToken)

Creates a new ThrowStatementSyntax instance.

ThrowStatement(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 ThrowStatementSyntax instance.

public static Microsoft.CodeAnalysis.CSharp.Syntax.ThrowStatementSyntax ThrowStatement (Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax expression = default);
public static Microsoft.CodeAnalysis.CSharp.Syntax.ThrowStatementSyntax ThrowStatement (Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax? expression = default);
static member ThrowStatement : Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.ThrowStatementSyntax
Public Shared Function ThrowStatement (Optional expression As ExpressionSyntax = Nothing) As ThrowStatementSyntax

Parameters

expression
ExpressionSyntax

Returns

Applies to

ThrowStatement(SyntaxList<AttributeListSyntax>, 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 ThrowStatementSyntax instance.

public static Microsoft.CodeAnalysis.CSharp.Syntax.ThrowStatementSyntax ThrowStatement (Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> attributeLists, Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax? expression);
static member ThrowStatement : Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> * Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.ThrowStatementSyntax
Public Shared Function ThrowStatement (attributeLists As SyntaxList(Of AttributeListSyntax), expression As ExpressionSyntax) As ThrowStatementSyntax

Parameters

expression
ExpressionSyntax

Returns

Applies to

ThrowStatement(SyntaxToken, ExpressionSyntax, SyntaxToken)

Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
ThrowStatementSyntax.cs
Source:
ThrowStatementSyntax.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:
ThrowStatementSyntax.cs
Source:
ThrowStatementSyntax.cs
Source:
ThrowStatementSyntax.cs
Source:
ThrowStatementSyntax.cs
Source:
ThrowStatementSyntax.cs
Source:
ThrowStatementSyntax.cs
Source:
ThrowStatementSyntax.cs
Source:
ThrowStatementSyntax.cs
Source:
ThrowStatementSyntax.cs
Source:
ThrowStatementSyntax.cs
Source:
ThrowStatementSyntax.cs
Source:
ThrowStatementSyntax.cs
Source:
ThrowStatementSyntax.cs
Source:
ThrowStatementSyntax.cs

Creates a new ThrowStatementSyntax instance.

public:
 static Microsoft::CodeAnalysis::CSharp::Syntax::ThrowStatementSyntax ^ ThrowStatement(Microsoft::CodeAnalysis::SyntaxToken throwKeyword, Microsoft::CodeAnalysis::CSharp::Syntax::ExpressionSyntax ^ expression, Microsoft::CodeAnalysis::SyntaxToken semicolonToken);
public static Microsoft.CodeAnalysis.CSharp.Syntax.ThrowStatementSyntax ThrowStatement (Microsoft.CodeAnalysis.SyntaxToken throwKeyword, Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax expression, Microsoft.CodeAnalysis.SyntaxToken semicolonToken);
public static Microsoft.CodeAnalysis.CSharp.Syntax.ThrowStatementSyntax ThrowStatement (Microsoft.CodeAnalysis.SyntaxToken throwKeyword, Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax? expression, Microsoft.CodeAnalysis.SyntaxToken semicolonToken);
static member ThrowStatement : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.CSharp.Syntax.ThrowStatementSyntax
Public Shared Function ThrowStatement (throwKeyword As SyntaxToken, expression As ExpressionSyntax, semicolonToken As SyntaxToken) As ThrowStatementSyntax

Parameters

throwKeyword
SyntaxToken
expression
ExpressionSyntax
semicolonToken
SyntaxToken

Returns

Applies to

ThrowStatement(SyntaxList<AttributeListSyntax>, 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 ThrowStatementSyntax instance.

public static Microsoft.CodeAnalysis.CSharp.Syntax.ThrowStatementSyntax ThrowStatement (Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> attributeLists, Microsoft.CodeAnalysis.SyntaxToken throwKeyword, Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax? expression, Microsoft.CodeAnalysis.SyntaxToken semicolonToken);
static member ThrowStatement : Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.CSharp.Syntax.ThrowStatementSyntax
Public Shared Function ThrowStatement (attributeLists As SyntaxList(Of AttributeListSyntax), throwKeyword As SyntaxToken, expression As ExpressionSyntax, semicolonToken As SyntaxToken) As ThrowStatementSyntax

Parameters

throwKeyword
SyntaxToken
expression
ExpressionSyntax
semicolonToken
SyntaxToken

Returns

Applies to