Skip to main content

Class MethodInvocationException

Exception thrown if a guarded method is invoked incorrectly

Inheritance
System.Object
System.Exception
Inherited Members
Show
Syntax
[Serializable]
public class MethodInvocationException : Exception, _Exception, ISerializable

Constructors

MethodInvocationException()

Initializes a new instance of the class

Declaration
public MethodInvocationException()

MethodInvocationException(String)

Initializes a new instance of the class

Declaration
public MethodInvocationException(string message)
Parameters
TypeNameDescription
System.StringmessageA that describes the exception.

MethodInvocationException(SerializationInfo, StreamingContext)

Declaration
protected MethodInvocationException(SerializationInfo info, StreamingContext context)
Parameters
TypeNameDescription
System.Runtime.Serialization.SerializationInfoinfo
System.Runtime.Serialization.StreamingContextcontext