Version 2 (modified by Charles, 5 years ago)



This exception is thrown by some library methods when the operation in question is not valid. Since there are already more specific ArgumentNullException? and ArgumentException? classes, InvalidOperationException will often indicate that the state of the object against which the method is called is not valid.

See also