次の方法で共有


SyntaxFactory.CatchStatement Method

Definition

Overloads

CatchStatement(IdentifierNameSyntax, SimpleAsClauseSyntax, CatchFilterClauseSyntax)

Represents the "Catch ... When ..." statement that begins a "Catch" block.

CatchStatement(SyntaxToken, IdentifierNameSyntax, SimpleAsClauseSyntax, CatchFilterClauseSyntax)

Represents the "Catch ... When ..." statement that begins a "Catch" block.

CatchStatement()

Represents the "Catch ... When ..." statement that begins a "Catch" block.

CatchStatement(IdentifierNameSyntax, SimpleAsClauseSyntax, CatchFilterClauseSyntax)

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 the "Catch ... When ..." statement that begins a "Catch" block.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::CatchStatementSyntax ^ CatchStatement(Microsoft::CodeAnalysis::VisualBasic::Syntax::IdentifierNameSyntax ^ identifierName, Microsoft::CodeAnalysis::VisualBasic::Syntax::SimpleAsClauseSyntax ^ asClause, Microsoft::CodeAnalysis::VisualBasic::Syntax::CatchFilterClauseSyntax ^ whenClause);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.CatchStatementSyntax CatchStatement (Microsoft.CodeAnalysis.VisualBasic.Syntax.IdentifierNameSyntax identifierName, Microsoft.CodeAnalysis.VisualBasic.Syntax.SimpleAsClauseSyntax asClause, Microsoft.CodeAnalysis.VisualBasic.Syntax.CatchFilterClauseSyntax whenClause);
static member CatchStatement : Microsoft.CodeAnalysis.VisualBasic.Syntax.IdentifierNameSyntax * Microsoft.CodeAnalysis.VisualBasic.Syntax.SimpleAsClauseSyntax * Microsoft.CodeAnalysis.VisualBasic.Syntax.CatchFilterClauseSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.CatchStatementSyntax
Public Shared Function CatchStatement (identifierName As IdentifierNameSyntax, asClause As SimpleAsClauseSyntax, whenClause As CatchFilterClauseSyntax) As CatchStatementSyntax

Parameters

identifierName
IdentifierNameSyntax

An identifier declaring a new variable or naming an existing variable to store the exception caught by the "Catch" statement.

asClause
SimpleAsClauseSyntax

A simple "As" clause specifying the type of exception to catch.

whenClause
CatchFilterClauseSyntax

A "When" clause to filter exceptions before catching.

Returns

Applies to

CatchStatement(SyntaxToken, IdentifierNameSyntax, SimpleAsClauseSyntax, CatchFilterClauseSyntax)

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 the "Catch ... When ..." statement that begins a "Catch" block.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::CatchStatementSyntax ^ CatchStatement(Microsoft::CodeAnalysis::SyntaxToken catchKeyword, Microsoft::CodeAnalysis::VisualBasic::Syntax::IdentifierNameSyntax ^ identifierName, Microsoft::CodeAnalysis::VisualBasic::Syntax::SimpleAsClauseSyntax ^ asClause, Microsoft::CodeAnalysis::VisualBasic::Syntax::CatchFilterClauseSyntax ^ whenClause);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.CatchStatementSyntax CatchStatement (Microsoft.CodeAnalysis.SyntaxToken catchKeyword, Microsoft.CodeAnalysis.VisualBasic.Syntax.IdentifierNameSyntax identifierName, Microsoft.CodeAnalysis.VisualBasic.Syntax.SimpleAsClauseSyntax asClause, Microsoft.CodeAnalysis.VisualBasic.Syntax.CatchFilterClauseSyntax whenClause);
static member CatchStatement : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.VisualBasic.Syntax.IdentifierNameSyntax * Microsoft.CodeAnalysis.VisualBasic.Syntax.SimpleAsClauseSyntax * Microsoft.CodeAnalysis.VisualBasic.Syntax.CatchFilterClauseSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.CatchStatementSyntax
Public Shared Function CatchStatement (catchKeyword As SyntaxToken, identifierName As IdentifierNameSyntax, asClause As SimpleAsClauseSyntax, whenClause As CatchFilterClauseSyntax) As CatchStatementSyntax

Parameters

catchKeyword
SyntaxToken

The "Catch" keyword.

identifierName
IdentifierNameSyntax

An identifier declaring a new variable or naming an existing variable to store the exception caught by the "Catch" statement.

asClause
SimpleAsClauseSyntax

A simple "As" clause specifying the type of exception to catch.

whenClause
CatchFilterClauseSyntax

A "When" clause to filter exceptions before catching.

Returns

Applies to

CatchStatement()

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 the "Catch ... When ..." statement that begins a "Catch" block.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::CatchStatementSyntax ^ CatchStatement();
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.CatchStatementSyntax CatchStatement ();
static member CatchStatement : unit -> Microsoft.CodeAnalysis.VisualBasic.Syntax.CatchStatementSyntax
Public Shared Function CatchStatement () As CatchStatementSyntax

Returns

Applies to