共用方式為


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

參數

傳回

適用於