Updated: April 27, 2016
Applies To: Windows PowerShell
Represents a Windows PowerShell exception that is related to security.
Assembly: System.Management.Automation (in System.Management.Automation.dll)
Initializes a new instance of theclass that is empty.
Initializes a new instance of theclass that contains information that is read from the provided serialization information.
Initializes a new instance of theclass that contains an exception message.
Initializes a new instance of theclass that contains an exception message and the inner exception that caused this exception to be thrown.
Gets the ErrorRecord information for this exception. (Overrides RuntimeException::ErrorRecord.)
Gets the exception message that describes the error condition. Introduced in Windows PowerShell 3.0.(Overrides Exception::Message.)
Gets or sets a value that indicates whether the exception was thrown from a throw statement.(Inherited from RuntimeException.)
This class provides additional information through its implementation of the IContainsErrorRecord interface.
Although cmdlets might need to catch this exception, instances of this exception class are usually generated by the Windows PowerShell runtime. It is unusual for code outside the Windows PowerShell runtime to create an instance of this class.
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.