SyntaxFactory.TryBlock Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
TryBlock(TryStatementSyntax, SyntaxList<StatementSyntax>, SyntaxList<CatchBlockSyntax>, FinallyBlockSyntax, EndBlockStatementSyntax) |
Rappresenta un oggetto "Try ... Prendere... Infine... Blocco End Try" (Termina prova). |
TryBlock() |
Rappresenta un oggetto "Try ... Prendere... Infine... Blocco End Try" (Termina prova). |
TryBlock(SyntaxList<StatementSyntax>, SyntaxList<CatchBlockSyntax>, FinallyBlockSyntax) |
Rappresenta un oggetto "Try ... Prendere... Infine... Blocco End Try" (Termina prova). |
TryBlock(TryStatementSyntax, SyntaxList<StatementSyntax>, SyntaxList<CatchBlockSyntax>, FinallyBlockSyntax, EndBlockStatementSyntax)
- 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
Rappresenta un oggetto "Try ... Prendere... Infine... Blocco End Try" (Termina prova).
public:
static Microsoft::CodeAnalysis::VisualBasic::Syntax::TryBlockSyntax ^ TryBlock(Microsoft::CodeAnalysis::VisualBasic::Syntax::TryStatementSyntax ^ tryStatement, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::StatementSyntax ^> statements, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::CatchBlockSyntax ^> catchBlocks, Microsoft::CodeAnalysis::VisualBasic::Syntax::FinallyBlockSyntax ^ finallyBlock, Microsoft::CodeAnalysis::VisualBasic::Syntax::EndBlockStatementSyntax ^ endTryStatement);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.TryBlockSyntax TryBlock (Microsoft.CodeAnalysis.VisualBasic.Syntax.TryStatementSyntax tryStatement, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> statements, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.CatchBlockSyntax> catchBlocks, Microsoft.CodeAnalysis.VisualBasic.Syntax.FinallyBlockSyntax finallyBlock, Microsoft.CodeAnalysis.VisualBasic.Syntax.EndBlockStatementSyntax endTryStatement);
static member TryBlock : Microsoft.CodeAnalysis.VisualBasic.Syntax.TryStatementSyntax * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.CatchBlockSyntax> * Microsoft.CodeAnalysis.VisualBasic.Syntax.FinallyBlockSyntax * Microsoft.CodeAnalysis.VisualBasic.Syntax.EndBlockStatementSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.TryBlockSyntax
Public Shared Function TryBlock (tryStatement As TryStatementSyntax, statements As SyntaxList(Of StatementSyntax), catchBlocks As SyntaxList(Of CatchBlockSyntax), finallyBlock As FinallyBlockSyntax, endTryStatement As EndBlockStatementSyntax) As TryBlockSyntax
Parametri
- tryStatement
- TryStatementSyntax
Istruzione "Try" che inizia il blocco "Try".
- statements
- SyntaxList<StatementSyntax>
Elenco di istruzioni da eseguire.
- catchBlocks
- SyntaxList<CatchBlockSyntax>
Elenco di blocchi "Catch" che possono essere eseguiti se viene generata un'eccezione durante l'esecuzione delle istruzioni nel blocco "Try".
- finallyBlock
- FinallyBlockSyntax
Blocco "Finally" da eseguire prima che l'esecuzione lasci il blocco "Try".
- endTryStatement
- EndBlockStatementSyntax
Istruzione "End Try".
Restituisce
Si applica a
TryBlock()
- 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
Rappresenta un oggetto "Try ... Prendere... Infine... Blocco End Try" (Termina prova).
public:
static Microsoft::CodeAnalysis::VisualBasic::Syntax::TryBlockSyntax ^ TryBlock();
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.TryBlockSyntax TryBlock ();
static member TryBlock : unit -> Microsoft.CodeAnalysis.VisualBasic.Syntax.TryBlockSyntax
Public Shared Function TryBlock () As TryBlockSyntax
Restituisce
Si applica a
TryBlock(SyntaxList<StatementSyntax>, SyntaxList<CatchBlockSyntax>, FinallyBlockSyntax)
- 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
Rappresenta un oggetto "Try ... Prendere... Infine... Blocco End Try" (Termina prova).
public:
static Microsoft::CodeAnalysis::VisualBasic::Syntax::TryBlockSyntax ^ TryBlock(Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::StatementSyntax ^> statements, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::CatchBlockSyntax ^> catchBlocks, Microsoft::CodeAnalysis::VisualBasic::Syntax::FinallyBlockSyntax ^ finallyBlock);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.TryBlockSyntax TryBlock (Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> statements, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.CatchBlockSyntax> catchBlocks, Microsoft.CodeAnalysis.VisualBasic.Syntax.FinallyBlockSyntax finallyBlock);
static member TryBlock : Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.CatchBlockSyntax> * Microsoft.CodeAnalysis.VisualBasic.Syntax.FinallyBlockSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.TryBlockSyntax
Public Shared Function TryBlock (statements As SyntaxList(Of StatementSyntax), catchBlocks As SyntaxList(Of CatchBlockSyntax), finallyBlock As FinallyBlockSyntax) As TryBlockSyntax
Parametri
- statements
- SyntaxList<StatementSyntax>
Elenco di istruzioni da eseguire.
- catchBlocks
- SyntaxList<CatchBlockSyntax>
Elenco di blocchi "Catch" che possono essere eseguiti se viene generata un'eccezione durante l'esecuzione delle istruzioni nel blocco "Try".
- finallyBlock
- FinallyBlockSyntax
Blocco "Finally" da eseguire prima che l'esecuzione lasci il blocco "Try".