Partilhar via


PSArgumentNullException Class

Definition

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

public ref class PSArgumentNullException : ArgumentNullException, System::Management::Automation::IContainsErrorRecord
[System.Serializable]
public class PSArgumentNullException : ArgumentNullException, System.Management.Automation.IContainsErrorRecord
public class PSArgumentNullException : ArgumentNullException, System.Management.Automation.IContainsErrorRecord
[<System.Serializable>]
type PSArgumentNullException = class
    inherit ArgumentNullException
    interface IContainsErrorRecord
type PSArgumentNullException = class
    inherit ArgumentNullException
    interface IContainsErrorRecord
Public Class PSArgumentNullException
Inherits ArgumentNullException
Implements IContainsErrorRecord
Inheritance
PSArgumentNullException
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

PSArgumentNullException()

Initializes a new instance of the PSArgumentNullException class.

PSArgumentNullException(SerializationInfo, StreamingContext)
Obsolete.

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

PSArgumentNullException(String, Exception)

Initializes a new instance of the PSArgumentNullException class.

PSArgumentNullException(String, String)

Initializes a new instance of the PSArgumentNullException class.

PSArgumentNullException(String)

Initializes a new instance of the PSArgumentNullException class.

Properties

ErrorRecord

Additional information about the error.

Message

See Message

Methods

GetObjectData(SerializationInfo, StreamingContext)

Serializer for ISerializable

Applies to