Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
We recommend using Visual Studio 2017

invalid_operation Class


This class describes an exception thrown when an invalid operation is performed that is not more accurately described by another exception type thrown by the Concurrency Runtime.

class invalid_operation : public std::exception;

Public Constructors

invalid_operation::invalid_operation ConstructorOverloaded. Constructs an invalid_operation object.

The various methods which throw this exception will generally document under what circumstances they will throw it.



Header: concrt.h

Namespace: concurrency

Constructs an invalid_operation object.

explicit _CRTIMP invalid_operation(_In_z_ const char* _Message) throw();

invalid_operation() throw();


A descriptive message of the error.

concurrency Namespace

© 2018 Microsoft