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

MethodException Constructor

Creates a new MethodException object. The variants of this constructor can be used to create an empty object, an object that contains an exception message, and more.

For more information about the different types of methods used within the extended type system, see ETS Methods.

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


Show:
© 2015 Microsoft