Vertaling van "Try-Block" in Engels
We konden deze vermelding niet vinden. Er worden benaderende resultaten weergegeven. Controleer je spelling of stel voor deze term aan het woordenboek toe te voegen.
Bei einem Fehler mit Abbruch während der Ausführung der Anweisungen in der Anweisungsliste übergibt das Skript das Fehlerobjekt vom Try-Block an einen entsprechenden Catch-Block.
If a terminating error occurs while the statements in the statement list are being run, the script passes the error object from the Try block to an appropriate Catch block.
Die Anweisungen des Finally-Blocks werden unabhängig davon ausgeführt, ob im Try-Block ein Fehler mit Abbruch auftritt.
The Finally block statements run regardless of whether the Try block encounters a terminating error.
Ausnahme in Main Try-Block Nr. 1
Das folgende Beispielskript zeigt einen Try-Block mit einem Catch-Block
The following sample script shows a Try block with a Catch block
Wenn in einem Catch-Block kein Fehlertyp angegeben wird, behandelt dieser Catch-Block jeden im Try-Block aufgetretenen Fehler.
If a Catch block does not specify an error type, that Catch block handles any error encountered in the Try block.
Definieren Sie mit dem Try-Block einen Abschnitt eines Skripts, in dem
Use the Try block to define a section of a script in which you want Windows
Das Catch-Schlüsselwort muss dem Try-Block oder einem anderen Catch-Block unmittelbar folgen.
The Catch keyword must immediately follow the Try block or another Catch block.
Das folgende Skript enthält beispielsweise einen Try-Block, mit dem heruntergeladen wird, sowie zwei Catch-Blöcke
For example, the following script has a Try block that downloads MyFile.doc, and it contains two Catch blocks
Definieren Sie mit dem Try-Block einen Abschnitt eines Skripts, in dem Windows PowerShell Fehler überwachen soll.
Use the Try block to define a section of a script in which you want Windows PowerShell to monitor for errors.
Eine Try-Anweisung enthält einen Try-Block, 0 oder mehr Catch-Blöcke und 0 oder einen Finally-Block.
A Try statement contains a Try block, zero or more Catch blocks, and zero or one Finally block.
Bei einem Fehler mit Abbruch im Try-Block sucht Windows PowerShell nach einem entsprechenden Catch-Block.
If a terminating error occurs in the Try block, Windows PowerShell searches for an appropriate Catch block.
Tritt keine Exception auf, werden alle Anweisungen im TRY-Block ausgeführt.
Assuming that no exception occurs, all of the statements in the TRY block will be executed as normal.
Wenn in einer der Anweisungen im TRY-Block ein Fehler auftritt, wird die Steuerung an die erste Anweisung im CATCH-Block übergeben.
If an error occurs in one of the statements in the TRY block, control passes to the first statement in the CATCH block.