← Interactive API Explorer
Namespace: System

InvalidOperationException

The exception that is thrown when a method call is invalid for the object's current state.

Methods (1)

InvalidOperationException(String)Constructor
Initializes a new instance of the InvalidOperationException class with a specified error message.
ParameterDescription
messageThe message that describes the error.