C # in a Nutshell, Second Edition

NotSupportedException CF 1.0, ECMA 1.0, serializable

System (mscorlib.dll) class

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 inputfor 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 (string message ); public NotSupportedException (string message , Exception innerException ); // Protected Constructors protected NotSupportedException (System.Runtime.Serialization.SerializationInfo info , System.Runtime.Serialization.StreamingContext context ); }

Hierarchy

Object Exception(System.Runtime.Serialization.ISerializable) SystemException NotSupportedException

Subclasses

PlatformNotSupportedException

Категории