CatchBlockSyntax.WithCatchStatement(CatchStatementSyntax) Method

Definition

Returns a copy of this with the CatchStatement 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::CatchBlockSyntax ^ WithCatchStatement(Microsoft::CodeAnalysis::VisualBasic::Syntax::CatchStatementSyntax ^ catchStatement);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.CatchBlockSyntax WithCatchStatement (Microsoft.CodeAnalysis.VisualBasic.Syntax.CatchStatementSyntax catchStatement);
member this.WithCatchStatement : Microsoft.CodeAnalysis.VisualBasic.Syntax.CatchStatementSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.CatchBlockSyntax
Public Function WithCatchStatement (catchStatement As CatchStatementSyntax) As CatchBlockSyntax

Parameters

catchStatement
CatchStatementSyntax

Returns

Applies to