다음을 통해 공유


PSArgumentException Class

Definition

This is a wrapper for exception class ArgumentException which provides additional information via IContainsErrorRecord.

public ref class PSArgumentException : ArgumentException, System::Management::Automation::IContainsErrorRecord
[System.Serializable]
public class PSArgumentException : ArgumentException, System.Management.Automation.IContainsErrorRecord
public class PSArgumentException : ArgumentException, System.Management.Automation.IContainsErrorRecord
[<System.Serializable>]
type PSArgumentException = class
    inherit ArgumentException
    interface IContainsErrorRecord
type PSArgumentException = class
    inherit ArgumentException
    interface IContainsErrorRecord
Public Class PSArgumentException
Inherits ArgumentException
Implements IContainsErrorRecord
Inheritance
PSArgumentException
Attributes
Implements

Remarks

Instances of this exception class are usually generated by the PowerShell Engine. It is unusual for code outside the PowerShell Engine to create an instance of this class.

Constructors

PSArgumentException()

Initializes a new instance of the PSArgumentException class.

PSArgumentException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of the PSArgumentException class using data serialized via ISerializable

PSArgumentException(String, Exception)

Initializes a new instance of the PSArgumentException class.

PSArgumentException(String, String)

Initializes a new instance of the PSArgumentException class.

PSArgumentException(String)

Initializes a new instance of the PSArgumentException class.

Properties

ErrorRecord

Additional information about the error.

Message

See Message

Methods

GetObjectData(SerializationInfo, StreamingContext)

Serializer for ISerializable

Applies to