Skip to main content
.NET API Catalog
  • Browse
  • Search
  • Diff
  • Others
    Feature Usage Stats Top APIs
    Version Source
  1. Catalog
  2. Microsoft.CodeAnalysis.CSharp.Syntax
  3. TryStatementSyntax
  4. Block
  • TryStatementSyntax
    • AttributeLists
    • Block
    • Catches
    • Finally
    • TryKeyword
    • Accept(CSharpSyntaxVisitor)
    • Accept<TResult>(CSharpSyntaxVisitor<TResult>)
    • AddAttributeLists(AttributeListSyntax[])
    • AddBlockAttributeLists(AttributeListSyntax[])
    • AddBlockStatements(StatementSyntax[])
    • AddCatches(CatchClauseSyntax[])
    • Update(SyntaxToken, BlockSyntax, SyntaxList<CatchClauseSyntax>, FinallyClauseSyntax)
    • Update(SyntaxList<AttributeListSyntax>, SyntaxToken, BlockSyntax, SyntaxList<CatchClauseSyntax>, FinallyClauseSyntax)
    • WithAttributeLists(SyntaxList<AttributeListSyntax>)
    • WithBlock(BlockSyntax)
    • WithCatches(SyntaxList<CatchClauseSyntax>)
    • WithFinally(FinallyClauseSyntax)
    • WithTryKeyword(SyntaxToken)
net10.0
namespace Microsoft.CodeAnalysis.CSharp.Syntax
{
    public sealed class TryStatementSyntax : StatementSyntax
    {
        public BlockSyntax! Block { get; }
    }
}
nuget.org
0.0 %
Reference this API
.NET
8.09.010.0
Information specific to net10.0
Assembly

Microsoft.CodeAnalysis.CSharp , Version=5.0.0.0, PublicKeyToken=31bf3856ad364e35

Referencing

Your project needs a package reference to Microsoft.CodeAnalysis.CSharp.

Package Microsoft.CodeAnalysis.CSharp (5.0.0) net9.0
Platform Restrictions

The property getter is supported on all platforms.

  • Built-in API
  • Package-provided API
Search

01/13/2026
An error has occurred. This application may no longer respond until reloaded. Reload 🗙