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(CatchDeclarationSyntax, CatchFilterClauseSyntax, BlockSyntax) |
Creates a new CatchClauseSyntax instance. |
CatchClause(SyntaxToken, CatchDeclarationSyntax, CatchFilterClauseSyntax, BlockSyntax) |
Creates a new CatchClauseSyntax instance. |
CatchClause() |
Creates a new CatchClauseSyntax instance. |
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
- 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
- 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
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
- 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
Colabore connosco no GitHub
A origem deste conteúdo pode ser encontrada no GitHub, onde também pode criar e rever problemas e pedidos Pull. Para mais informações, consulte o nosso guia do contribuidor.