TryStatementSyntax.WithCatches(SyntaxList<CatchClauseSyntax>) 方法
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
public:
Microsoft::CodeAnalysis::CSharp::Syntax::TryStatementSyntax ^ WithCatches(Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::CSharp::Syntax::CatchClauseSyntax ^> catches);
public Microsoft.CodeAnalysis.CSharp.Syntax.TryStatementSyntax WithCatches (Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.CatchClauseSyntax> catches);
member this.WithCatches : Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.CatchClauseSyntax> -> Microsoft.CodeAnalysis.CSharp.Syntax.TryStatementSyntax
Public Function WithCatches (catches As SyntaxList(Of CatchClauseSyntax)) As TryStatementSyntax
- catches
- SyntaxList<CatchClauseSyntax>