The InvalidOperationException type exposes the following members.
When overridden in a derived class, returns the(Inherited from that is the root cause of one or more subsequent exceptions. .)
When overridden in a derived class, sets the(Inherited from with information about the exception. .)
Gets the runtime type of the current instance.(Inherited from .)
Creates and returns a string representation of the current exception.(Inherited from .)