PSInvalidCastException PSInvalidCastException PSInvalidCastException Class

Definition

Defines the exception thrown for type conversion errors

public class PSInvalidCastException : InvalidCastException, System.Management.Automation.IContainsErrorRecord
type PSInvalidCastException = class
    inherit InvalidCastException
    interface IContainsErrorRecord
Public Class PSInvalidCastException
Inherits InvalidCastException
Implements IContainsErrorRecord
Inheritance
PSInvalidCastExceptionPSInvalidCastExceptionPSInvalidCastException
Implements

Constructors

PSInvalidCastException() PSInvalidCastException() PSInvalidCastException()

Initializes a new instance of PSInvalidCastException with the message set to typeof(PSInvalidCastException).FullName

PSInvalidCastException(String) PSInvalidCastException(String) PSInvalidCastException(String)

Initializes a new instance of PSInvalidCastException setting the message

PSInvalidCastException(SerializationInfo, StreamingContext) PSInvalidCastException(SerializationInfo, StreamingContext) PSInvalidCastException(SerializationInfo, StreamingContext)

Initializes a new instance of PSInvalidCastException with serialization parameters

PSInvalidCastException(String, Exception) PSInvalidCastException(String, Exception) PSInvalidCastException(String, Exception)

Initializes a new instance of PSInvalidCastException setting the message and innerException

Properties

ErrorRecord ErrorRecord ErrorRecord

Gets the ErrorRecord associated with this exception

Methods

GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext)

Populates a SerializationInfo with the data needed to serialize the PSInvalidCastException object.

Applies to