Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

PSArgumentException Constructor

Creates a new PSArgumentException object. The variants of this constructor can create an empty object, an object that contains the parameter that has the argument that is not valid, and more.
NameDescription
PSArgumentException ()Creates a new PSArgumentException object that is empty.
PSArgumentException (SerializationInfo, StreamingContext)Creates a new PSArgumentException object that contains information that is read from the provided serialization information.
PSArgumentException (String)Creates a new PSArgumentException object that contains the parameter that has the argument that is not valid.
PSArgumentException (String, Exception)Creates a new PSArgumentException object that contains an exception message and the inner-exception that caused this exception to be thrown.
PSArgumentException (String, String)Creates a new PSArgumentException object that contains that contains an exception message and the parameter that has the argument that is not valid.

Send comments about this topic to Microsoft.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.