ThrowStatementSyntax.WithThrowKeyword(SyntaxToken) 方法

定义

返回一个副本,其中 ThrowKeyword 属性已更改为指定值。 如果指定的值与当前值相同,则返回此实例。

public:
 Microsoft::CodeAnalysis::VisualBasic::Syntax::ThrowStatementSyntax ^ WithThrowKeyword(Microsoft::CodeAnalysis::SyntaxToken throwKeyword);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.ThrowStatementSyntax WithThrowKeyword (Microsoft.CodeAnalysis.SyntaxToken throwKeyword);
member this.WithThrowKeyword : Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.VisualBasic.Syntax.ThrowStatementSyntax
Public Function WithThrowKeyword (throwKeyword As SyntaxToken) As ThrowStatementSyntax

参数

throwKeyword
SyntaxToken

返回

适用于