CatchStatementSyntax.WithWhenClause(CatchFilterClauseSyntax) 方法

定义

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

public:
 Microsoft::CodeAnalysis::VisualBasic::Syntax::CatchStatementSyntax ^ WithWhenClause(Microsoft::CodeAnalysis::VisualBasic::Syntax::CatchFilterClauseSyntax ^ whenClause);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.CatchStatementSyntax WithWhenClause (Microsoft.CodeAnalysis.VisualBasic.Syntax.CatchFilterClauseSyntax whenClause);
member this.WithWhenClause : Microsoft.CodeAnalysis.VisualBasic.Syntax.CatchFilterClauseSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.CatchStatementSyntax
Public Function WithWhenClause (whenClause As CatchFilterClauseSyntax) As CatchStatementSyntax

参数

返回

适用于