System.NotSupportedException Class
Represents the error that occurs when an object cannot perform an operation.

See Also: NotSupportedException Members

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public class NotSupportedException : SystemException

Remarks

Note:

NotSupportedException is thrown when it is never possible for the object to perform the requested operation. A typical scenario is when a base class declares a method that derived classes are required to implement, and the method is invoked on the base class. When a method throws NotSupportedException this usually indicates that the derived classes must provide an implementation of the method, and callers must invoke the method on the derived class.

For scenarios where it is sometimes possible for the object to perform the requested operation, and the object state determines whether the operation can be performed, see InvalidOperationException .

Thread Safety

All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0