TryBlockSyntax.WithCatchBlocks(SyntaxList<CatchBlockSyntax>) 方法

定义

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

public:
 Microsoft::CodeAnalysis::VisualBasic::Syntax::TryBlockSyntax ^ WithCatchBlocks(Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::CatchBlockSyntax ^> catchBlocks);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.TryBlockSyntax WithCatchBlocks (Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.CatchBlockSyntax> catchBlocks);
member this.WithCatchBlocks : Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.CatchBlockSyntax> -> Microsoft.CodeAnalysis.VisualBasic.Syntax.TryBlockSyntax
Public Function WithCatchBlocks (catchBlocks As SyntaxList(Of CatchBlockSyntax)) As TryBlockSyntax

参数

返回

适用于