Represents the exception that is thrown to indicate that a method is not supported.
Object
Exception
SystemException
NotSupportedException
[Visual Basic] Public Class NotSupportedException Inherits SystemException [C#] public class NotSupportedException : SystemException [C++] public __gc class NotSupportedException : public SystemException [JScript] public class NotSupportedException extends SystemException
The NotSupportedException is the exception class that is thrown for methods that should be implemented on subclasses.
A class may implement an interface and rather than provide support for a particular method, the implementation may simply throw the NotSupportedException exception.
The NotSupportedException is thrown by a number of the System.IO Namespace classes when there is an attempt to read, seek, or write to a stream that does not support this functionality. For example, after a call to Close the various write methods will throw the NotSupportedException.
Namespace: System
Assembly: mscorlib.dll