SyntaxGenerator.ThrowExpression(SyntaxNode) Method

Definition

Creates an expression that can be used to throw an exception.

public:
 abstract Microsoft::CodeAnalysis::SyntaxNode ^ ThrowExpression(Microsoft::CodeAnalysis::SyntaxNode ^ expression);
public abstract Microsoft.CodeAnalysis.SyntaxNode ThrowExpression (Microsoft.CodeAnalysis.SyntaxNode expression);
abstract member ThrowExpression : Microsoft.CodeAnalysis.SyntaxNode -> Microsoft.CodeAnalysis.SyntaxNode
Public MustOverride Function ThrowExpression (expression As SyntaxNode) As SyntaxNode

Parameters

expression
SyntaxNode

Returns

Applies to