Share via


CatchStatementSyntax.WithWhenClause(CatchFilterClauseSyntax) Method

Definition

Returns a copy of this with the WhenClause property changed to the specified value. Returns this instance if the specified value is the same as the current value.

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

Parameters

Returns

Applies to