Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
RuntimeException Constructor

RuntimeException Constructor

Initializes a new instance of the RuntimeException class. The variants of this constructor can be used to create an empty object, an object that contains an exception message, and more.

NameDescription
RuntimeException ()Initializes a new instance of the RuntimeException class that is empty.
RuntimeException (SerializationInfo, StreamingContext)Initializes a new instance of the RuntimeException class that contains information that is read from the provided serialization information.
RuntimeException (String)Initializes a new instance of the RuntimeException class that contains an exception message that describes the error condition.
RuntimeException (String, Exception)Initializes a new instance of the RuntimeException class that contains an exception message and the inner exception that caused this exception to be thrown.
RuntimeException (String, Exception, ErrorRecord)Initializes a new instance of the RuntimeException class that contains an exception message, the inner exception that caused this exception to be thrown, and an already populated error record. Introduced in Windows PowerShell 3.0.


Show:
© 2015 Microsoft