Share via


CatchClauseSyntax.WithDeclaration(CatchDeclarationSyntax) Method

Definition

public:
 Microsoft::CodeAnalysis::CSharp::Syntax::CatchClauseSyntax ^ WithDeclaration(Microsoft::CodeAnalysis::CSharp::Syntax::CatchDeclarationSyntax ^ declaration);
public Microsoft.CodeAnalysis.CSharp.Syntax.CatchClauseSyntax WithDeclaration (Microsoft.CodeAnalysis.CSharp.Syntax.CatchDeclarationSyntax declaration);
public Microsoft.CodeAnalysis.CSharp.Syntax.CatchClauseSyntax WithDeclaration (Microsoft.CodeAnalysis.CSharp.Syntax.CatchDeclarationSyntax? declaration);
member this.WithDeclaration : Microsoft.CodeAnalysis.CSharp.Syntax.CatchDeclarationSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.CatchClauseSyntax
Public Function WithDeclaration (declaration As CatchDeclarationSyntax) As CatchClauseSyntax

Parameters

Returns

Applies to