PSInvalidCastException Class
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
PSInvalid |
Initializes a new instance of PSInvalidCastException with the message set to typeof(PSInvalidCastException).FullName. |
PSInvalid |
Obsolete.
Initializes a new instance of PSInvalidCastException with serialization parameters. |
PSInvalid |
Initializes a new instance of PSInvalidCastException setting the message and innerException. |
PSInvalid |
Initializes a new instance of PSInvalidCastException setting the message. |
Error |
Gets the ErrorRecord associated with this exception. |
Get |
Populates a SerializationInfo with the data needed to serialize the PSInvalidCastException object. |
Производ | Верзије |
---|---|
PowerShell SDK | 7.2.0, 7.3.0, 7.4.0 |
Windows PowerShell | 5.1.0.0 |