共用方式為


TryStatementSyntax.WithBlock(BlockSyntax) 方法

定義

public:
 Microsoft::CodeAnalysis::CSharp::Syntax::TryStatementSyntax ^ WithBlock(Microsoft::CodeAnalysis::CSharp::Syntax::BlockSyntax ^ block);
public Microsoft.CodeAnalysis.CSharp.Syntax.TryStatementSyntax WithBlock (Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax block);
member this.WithBlock : Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.TryStatementSyntax
Public Function WithBlock (block As BlockSyntax) As TryStatementSyntax

參數

block
BlockSyntax

傳回

適用於