Share via


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 .NET Micro Framework version 2.0, 2.5

See Also

Reference

InvalidOperationException Members
System Namespace