SyntaxFactory.TryStatement Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
TryStatement(SyntaxList<CatchClauseSyntax>) |
Crea una nueva instancia tryStatementSyntax. |
TryStatement(BlockSyntax, SyntaxList<CatchClauseSyntax>, FinallyClauseSyntax) |
Crea una nueva instancia tryStatementSyntax. |
TryStatement(SyntaxList<AttributeListSyntax>, BlockSyntax, SyntaxList<CatchClauseSyntax>, FinallyClauseSyntax) |
Crea una nueva instancia tryStatementSyntax. |
TryStatement(SyntaxToken, BlockSyntax, SyntaxList<CatchClauseSyntax>, FinallyClauseSyntax) |
Crea una nueva instancia tryStatementSyntax. |
TryStatement(SyntaxList<AttributeListSyntax>, SyntaxToken, BlockSyntax, SyntaxList<CatchClauseSyntax>, FinallyClauseSyntax) |
Crea una nueva instancia tryStatementSyntax. |
TryStatement(SyntaxList<CatchClauseSyntax>)
- 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
Crea una nueva instancia tryStatementSyntax.
public static Microsoft.CodeAnalysis.CSharp.Syntax.TryStatementSyntax TryStatement (Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.CatchClauseSyntax> catches = default);
static member TryStatement : Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.CatchClauseSyntax> -> Microsoft.CodeAnalysis.CSharp.Syntax.TryStatementSyntax
Public Shared Function TryStatement (Optional catches As SyntaxList(Of CatchClauseSyntax) = Nothing) As TryStatementSyntax
Parámetros
- catches
- SyntaxList<CatchClauseSyntax>
Devoluciones
Se aplica a
TryStatement(BlockSyntax, SyntaxList<CatchClauseSyntax>, FinallyClauseSyntax)
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.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:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
Crea una nueva instancia tryStatementSyntax.
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::TryStatementSyntax ^ TryStatement(Microsoft::CodeAnalysis::CSharp::Syntax::BlockSyntax ^ block, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::CSharp::Syntax::CatchClauseSyntax ^> catches, Microsoft::CodeAnalysis::CSharp::Syntax::FinallyClauseSyntax ^ finally);
public static Microsoft.CodeAnalysis.CSharp.Syntax.TryStatementSyntax TryStatement (Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax block, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.CatchClauseSyntax> catches, Microsoft.CodeAnalysis.CSharp.Syntax.FinallyClauseSyntax finally);
public static Microsoft.CodeAnalysis.CSharp.Syntax.TryStatementSyntax TryStatement (Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax block, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.CatchClauseSyntax> catches, Microsoft.CodeAnalysis.CSharp.Syntax.FinallyClauseSyntax? finally);
static member TryStatement : Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.CatchClauseSyntax> * Microsoft.CodeAnalysis.CSharp.Syntax.FinallyClauseSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.TryStatementSyntax
Public Shared Function TryStatement (block As BlockSyntax, catches As SyntaxList(Of CatchClauseSyntax), finally As FinallyClauseSyntax) As TryStatementSyntax
Parámetros
- block
- BlockSyntax
- catches
- SyntaxList<CatchClauseSyntax>
- finally
- FinallyClauseSyntax
Devoluciones
Se aplica a
TryStatement(SyntaxList<AttributeListSyntax>, BlockSyntax, SyntaxList<CatchClauseSyntax>, FinallyClauseSyntax)
- 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
Crea una nueva instancia tryStatementSyntax.
public static Microsoft.CodeAnalysis.CSharp.Syntax.TryStatementSyntax TryStatement (Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> attributeLists, Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax block, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.CatchClauseSyntax> catches, Microsoft.CodeAnalysis.CSharp.Syntax.FinallyClauseSyntax? finally);
static member TryStatement : Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> * Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.CatchClauseSyntax> * Microsoft.CodeAnalysis.CSharp.Syntax.FinallyClauseSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.TryStatementSyntax
Public Shared Function TryStatement (attributeLists As SyntaxList(Of AttributeListSyntax), block As BlockSyntax, catches As SyntaxList(Of CatchClauseSyntax), finally As FinallyClauseSyntax) As TryStatementSyntax
Parámetros
- attributeLists
- SyntaxList<AttributeListSyntax>
- block
- BlockSyntax
- catches
- SyntaxList<CatchClauseSyntax>
- finally
- FinallyClauseSyntax
Devoluciones
Se aplica a
TryStatement(SyntaxToken, BlockSyntax, SyntaxList<CatchClauseSyntax>, FinallyClauseSyntax)
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.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:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
Crea una nueva instancia tryStatementSyntax.
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::TryStatementSyntax ^ TryStatement(Microsoft::CodeAnalysis::SyntaxToken tryKeyword, Microsoft::CodeAnalysis::CSharp::Syntax::BlockSyntax ^ block, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::CSharp::Syntax::CatchClauseSyntax ^> catches, Microsoft::CodeAnalysis::CSharp::Syntax::FinallyClauseSyntax ^ finally);
public static Microsoft.CodeAnalysis.CSharp.Syntax.TryStatementSyntax TryStatement (Microsoft.CodeAnalysis.SyntaxToken tryKeyword, Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax block, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.CatchClauseSyntax> catches, Microsoft.CodeAnalysis.CSharp.Syntax.FinallyClauseSyntax finally);
public static Microsoft.CodeAnalysis.CSharp.Syntax.TryStatementSyntax TryStatement (Microsoft.CodeAnalysis.SyntaxToken tryKeyword, Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax block, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.CatchClauseSyntax> catches, Microsoft.CodeAnalysis.CSharp.Syntax.FinallyClauseSyntax? finally);
static member TryStatement : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.CatchClauseSyntax> * Microsoft.CodeAnalysis.CSharp.Syntax.FinallyClauseSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.TryStatementSyntax
Public Shared Function TryStatement (tryKeyword As SyntaxToken, block As BlockSyntax, catches As SyntaxList(Of CatchClauseSyntax), finally As FinallyClauseSyntax) As TryStatementSyntax
Parámetros
- tryKeyword
- SyntaxToken
- block
- BlockSyntax
- catches
- SyntaxList<CatchClauseSyntax>
- finally
- FinallyClauseSyntax
Devoluciones
Se aplica a
TryStatement(SyntaxList<AttributeListSyntax>, SyntaxToken, BlockSyntax, SyntaxList<CatchClauseSyntax>, FinallyClauseSyntax)
- 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
Crea una nueva instancia tryStatementSyntax.
public static Microsoft.CodeAnalysis.CSharp.Syntax.TryStatementSyntax TryStatement (Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> attributeLists, Microsoft.CodeAnalysis.SyntaxToken tryKeyword, Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax block, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.CatchClauseSyntax> catches, Microsoft.CodeAnalysis.CSharp.Syntax.FinallyClauseSyntax? finally);
static member TryStatement : Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.CatchClauseSyntax> * Microsoft.CodeAnalysis.CSharp.Syntax.FinallyClauseSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.TryStatementSyntax
Public Shared Function TryStatement (attributeLists As SyntaxList(Of AttributeListSyntax), tryKeyword As SyntaxToken, block As BlockSyntax, catches As SyntaxList(Of CatchClauseSyntax), finally As FinallyClauseSyntax) As TryStatementSyntax
Parámetros
- attributeLists
- SyntaxList<AttributeListSyntax>
- tryKeyword
- SyntaxToken
- block
- BlockSyntax
- catches
- SyntaxList<CatchClauseSyntax>
- finally
- FinallyClauseSyntax