Freigeben über


ThrowStatementAst.IsRethrow Property

Definition

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

Property Value

Applies to