ThrowStatementAst.IsRethrow Property
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.
If the throw statement is a rethrow. In PowerShell, a throw statement need not throw anything. Such
a throw statement throws a new exception if it does not appear lexically withing a catch, otherwise
it rethrows the caught exception. Examples:
if ($true) { throw } # not a rethrow
try { foo } catch { throw } # rethrow
try { foo } catch { . { throw } } # rethrow
try { foo } catch { function foo { throw } } # rethrow
try { foo } finally { throw } # not a rethrow
public:
property bool IsRethrow { bool get(); };
public:
property bool IsRethrow { bool get(); };
public bool IsRethrow { get; }
member this.IsRethrow : bool
Public ReadOnly Property IsRethrow As Boolean