Export (0) Print
Expand All

InvalidOperationException Constructor

.NET Framework 1.1

Initializes a new instance of the InvalidOperationException class.

Overload List

Initializes a new instance of the InvalidOperationException class.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New()
[C#] public InvalidOperationException();
[C++] public: InvalidOperationException();
[JScript] public function InvalidOperationException();

Initializes a new instance of the InvalidOperationException class with a specified error message.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New(String)
[C#] public InvalidOperationException(string);
[C++] public: InvalidOperationException(String*);
[JScript] public function InvalidOperationException(String);

Initializes a new instance of the InvalidOperationException class with serialized data.

[Visual Basic] Protected Sub New(SerializationInfo, StreamingContext)
[C#] protected InvalidOperationException(SerializationInfo, StreamingContext);
[C++] protected: InvalidOperationException(SerializationInfo*, StreamingContext);
[JScript] protected function InvalidOperationException(SerializationInfo, StreamingContext);

Initializes a new instance of the InvalidOperationException class with a specified error message and a reference to the inner exception that is the cause of this exception.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New(String, Exception)
[C#] public InvalidOperationException(string, Exception);
[C++] public: InvalidOperationException(String*, Exception*);
[JScript] public function InvalidOperationException(String, Exception);

See Also

InvalidOperationException Class | InvalidOperationException Members | System Namespace

Show:
© 2014 Microsoft