SyntaxGenerator.ThrowStatement(SyntaxNode) 方法

定义

创建可用于引发异常的语句。

public abstract Microsoft.CodeAnalysis.SyntaxNode ThrowStatement (Microsoft.CodeAnalysis.SyntaxNode expression = default);
public abstract Microsoft.CodeAnalysis.SyntaxNode ThrowStatement (Microsoft.CodeAnalysis.SyntaxNode? expression = default);
abstract member ThrowStatement : Microsoft.CodeAnalysis.SyntaxNode -> Microsoft.CodeAnalysis.SyntaxNode
Public MustOverride Function ThrowStatement (Optional expression As SyntaxNode = Nothing) As SyntaxNode

参数

expression
SyntaxNode

可以引发的可选表达式。

返回

适用于