Name
NotSupportedException
Synopsis
This exception indicates an
attempt to use an unsupported method.
For example, if you try to seek on a stream that is based on
unidirectional input—for example, a standard input stream from
a console utility such as sort.exe
—this
exception could be thrown.
public class NotSupportedException : SystemException { // Public Constructors public NotSupportedException( ); public NotSupportedException(stringmessage
); public NotSupportedException(stringmessage
, ExceptioninnerException
); // Protected Constructors protected NotSupportedException(System.Runtime.Serialization.SerializationInfoinfo
, System.Runtime.Serialization.StreamingContextcontext
); }
Hierarchy
Object
→
Exception(System.Runtime.Serialization.ISerializable)
→
SystemException
→
NotSupportedException
Subclasses
PlatformNotSupportedException
Get C# in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.