SyntaxFactory.CatchBlock 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
CatchBlock(CatchStatementSyntax) |
Represents a "Catch ..." block. |
CatchBlock(CatchStatementSyntax, SyntaxList<StatementSyntax>) |
Represents a "Catch ..." block. |
CatchBlock(CatchStatementSyntax)
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
Represents a "Catch ..." block.
public:
static Microsoft::CodeAnalysis::VisualBasic::Syntax::CatchBlockSyntax ^ CatchBlock(Microsoft::CodeAnalysis::VisualBasic::Syntax::CatchStatementSyntax ^ catchStatement);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.CatchBlockSyntax CatchBlock (Microsoft.CodeAnalysis.VisualBasic.Syntax.CatchStatementSyntax catchStatement);
static member CatchBlock : Microsoft.CodeAnalysis.VisualBasic.Syntax.CatchStatementSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.CatchBlockSyntax
Public Shared Function CatchBlock (catchStatement As CatchStatementSyntax) As CatchBlockSyntax
Parameters
- catchStatement
- CatchStatementSyntax
The "Catch" statement that begins the "Catch" block.
Returns
Applies to
CatchBlock(CatchStatementSyntax, SyntaxList<StatementSyntax>)
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
- Source:
- Syntax.xml.Main.Generated.vb
Represents a "Catch ..." block.
public:
static Microsoft::CodeAnalysis::VisualBasic::Syntax::CatchBlockSyntax ^ CatchBlock(Microsoft::CodeAnalysis::VisualBasic::Syntax::CatchStatementSyntax ^ catchStatement, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::StatementSyntax ^> statements);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.CatchBlockSyntax CatchBlock (Microsoft.CodeAnalysis.VisualBasic.Syntax.CatchStatementSyntax catchStatement, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> statements);
static member CatchBlock : Microsoft.CodeAnalysis.VisualBasic.Syntax.CatchStatementSyntax * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> -> Microsoft.CodeAnalysis.VisualBasic.Syntax.CatchBlockSyntax
Public Shared Function CatchBlock (catchStatement As CatchStatementSyntax, statements As SyntaxList(Of StatementSyntax)) As CatchBlockSyntax
Parameters
- catchStatement
- CatchStatementSyntax
The "Catch" statement that begins the "Catch" block.
- statements
- SyntaxList<StatementSyntax>
A list of statements to be executed if an exception is caught by the "Catch" block.
Returns
Applies to
Collaborer avec nous sur GitHub
La source de ce contenu se trouve sur GitHub, où vous pouvez également créer et examiner les problèmes et les demandes de tirage. Pour plus d’informations, consultez notre guide du contributeur.