PSInvalidCastException Class
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.
Defines the exception thrown for type conversion errors.
public ref class PSInvalidCastException : InvalidCastException, System::Management::Automation::IContainsErrorRecord
[System.Serializable]
public class PSInvalidCastException : InvalidCastException, System.Management.Automation.IContainsErrorRecord
public class PSInvalidCastException : InvalidCastException, System.Management.Automation.IContainsErrorRecord
[<System.Serializable>]
type PSInvalidCastException = class
inherit InvalidCastException
interface IContainsErrorRecord
type PSInvalidCastException = class
inherit InvalidCastException
interface IContainsErrorRecord
Public Class PSInvalidCastException
Inherits InvalidCastException
Implements IContainsErrorRecord
- Inheritance
-
PSInvalidCastException
- Attributes
- Implements
Constructors
PSInvalidCastException() |
Initializes a new instance of PSInvalidCastException with the message set to typeof(PSInvalidCastException).FullName. |
PSInvalidCastException(SerializationInfo, StreamingContext) |
Obsolete.
Initializes a new instance of PSInvalidCastException with serialization parameters. |
PSInvalidCastException(String, Exception) |
Initializes a new instance of PSInvalidCastException setting the message and innerException. |
PSInvalidCastException(String) |
Initializes a new instance of PSInvalidCastException setting the message. |
Properties
ErrorRecord |
Gets the ErrorRecord associated with this exception. |
Methods
GetObjectData(SerializationInfo, StreamingContext) |
Populates a SerializationInfo with the data needed to serialize the PSInvalidCastException object. |