SyntaxFactory.CatchClause Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CatchClause() |
Creates a new CatchClauseSyntax instance. |
CatchClause(CatchDeclarationSyntax, CatchFilterClauseSyntax, BlockSyntax) |
Creates a new CatchClauseSyntax instance. |
CatchClause(SyntaxToken, CatchDeclarationSyntax, CatchFilterClauseSyntax, BlockSyntax) |
Creates a new CatchClauseSyntax instance. |
CatchClause()
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
Creates a new CatchClauseSyntax instance.
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::CatchClauseSyntax ^ CatchClause();
public static Microsoft.CodeAnalysis.CSharp.Syntax.CatchClauseSyntax CatchClause ();
static member CatchClause : unit -> Microsoft.CodeAnalysis.CSharp.Syntax.CatchClauseSyntax
Public Shared Function CatchClause () As CatchClauseSyntax
Returns
Applies to
CatchClause(CatchDeclarationSyntax, CatchFilterClauseSyntax, BlockSyntax)
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
Creates a new CatchClauseSyntax instance.
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::CatchClauseSyntax ^ CatchClause(Microsoft::CodeAnalysis::CSharp::Syntax::CatchDeclarationSyntax ^ declaration, Microsoft::CodeAnalysis::CSharp::Syntax::CatchFilterClauseSyntax ^ filter, Microsoft::CodeAnalysis::CSharp::Syntax::BlockSyntax ^ block);
public static Microsoft.CodeAnalysis.CSharp.Syntax.CatchClauseSyntax CatchClause (Microsoft.CodeAnalysis.CSharp.Syntax.CatchDeclarationSyntax declaration, Microsoft.CodeAnalysis.CSharp.Syntax.CatchFilterClauseSyntax filter, Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax block);
public static Microsoft.CodeAnalysis.CSharp.Syntax.CatchClauseSyntax CatchClause (Microsoft.CodeAnalysis.CSharp.Syntax.CatchDeclarationSyntax? declaration, Microsoft.CodeAnalysis.CSharp.Syntax.CatchFilterClauseSyntax? filter, Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax block);
static member CatchClause : Microsoft.CodeAnalysis.CSharp.Syntax.CatchDeclarationSyntax * Microsoft.CodeAnalysis.CSharp.Syntax.CatchFilterClauseSyntax * Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.CatchClauseSyntax
Public Shared Function CatchClause (declaration As CatchDeclarationSyntax, filter As CatchFilterClauseSyntax, block As BlockSyntax) As CatchClauseSyntax
Parameters
- declaration
- CatchDeclarationSyntax
- filter
- CatchFilterClauseSyntax
- block
- BlockSyntax
Returns
Applies to
CatchClause(SyntaxToken, CatchDeclarationSyntax, CatchFilterClauseSyntax, BlockSyntax)
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
Creates a new CatchClauseSyntax instance.
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::CatchClauseSyntax ^ CatchClause(Microsoft::CodeAnalysis::SyntaxToken catchKeyword, Microsoft::CodeAnalysis::CSharp::Syntax::CatchDeclarationSyntax ^ declaration, Microsoft::CodeAnalysis::CSharp::Syntax::CatchFilterClauseSyntax ^ filter, Microsoft::CodeAnalysis::CSharp::Syntax::BlockSyntax ^ block);
public static Microsoft.CodeAnalysis.CSharp.Syntax.CatchClauseSyntax CatchClause (Microsoft.CodeAnalysis.SyntaxToken catchKeyword, Microsoft.CodeAnalysis.CSharp.Syntax.CatchDeclarationSyntax declaration, Microsoft.CodeAnalysis.CSharp.Syntax.CatchFilterClauseSyntax filter, Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax block);
public static Microsoft.CodeAnalysis.CSharp.Syntax.CatchClauseSyntax CatchClause (Microsoft.CodeAnalysis.SyntaxToken catchKeyword, Microsoft.CodeAnalysis.CSharp.Syntax.CatchDeclarationSyntax? declaration, Microsoft.CodeAnalysis.CSharp.Syntax.CatchFilterClauseSyntax? filter, Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax block);
static member CatchClause : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.CSharp.Syntax.CatchDeclarationSyntax * Microsoft.CodeAnalysis.CSharp.Syntax.CatchFilterClauseSyntax * Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.CatchClauseSyntax
Public Shared Function CatchClause (catchKeyword As SyntaxToken, declaration As CatchDeclarationSyntax, filter As CatchFilterClauseSyntax, block As BlockSyntax) As CatchClauseSyntax
Parameters
- catchKeyword
- SyntaxToken
- declaration
- CatchDeclarationSyntax
- filter
- CatchFilterClauseSyntax
- block
- BlockSyntax
Returns
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.