PSArgumentNullException Constructor

Creates a new PSArgumentNullException object. The variants of this constructor can create an empty object, an object that contains the parameter that has the null argument, and more.

NameDescription
PSArgumentNullException ()Creates a new PSArgumentNullException object that is empty.
PSArgumentNullException (SerializationInfo, StreamingContext)Creates a new PSArgumentNullException object that contains information that is read from the provided serialization information.
PSArgumentNullException (String)Creates a new PSArgumentNullException object that contains the parameter that has the null argument.
PSArgumentNullException (String, Exception)Creates a new PSArgumentNullException object that contains an exception message and the inner-exception that caused this exception to be thrown.
PSArgumentNullException (String, String)Creates a new PSArgumentNullException object that contains the parameter that has the null argument and an exception message.

Send comments about this topic to Microsoft.
Show:
© 2014 Microsoft