InvalidOperationException Class
The exception that is thrown when a method call is invalid for a specified object's current state.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Syntax
[SerializableAttribute]
public class InvalidOperationException : SystemException
Remarks
An instance of the InvalidOperationException class is used in cases where the failure to invoke a method is caused by reasons other than invalid arguments.
Version Information
Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.