This documentation is archived and is not being maintained.

NotSupportedException Constructor

.NET Framework 1.1

Initializes a new instance of the NotSupportedException class.

Overload List

Initializes a new instance of the NotSupportedException class, setting the Message property of the new instance to a system-supplied message that describes the error. This message takes into account the current system culture.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New()
[C#] public NotSupportedException();
[C++] public: NotSupportedException();
[JScript] public function NotSupportedException();

Initializes a new instance of the NotSupportedException class with a specified error message.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New(String)
[C#] public NotSupportedException(string);
[C++] public: NotSupportedException(String*);
[JScript] public function NotSupportedException(String);

Initializes a new instance of the NotSupportedException class with serialized data.

[Visual Basic] Protected Sub New(SerializationInfo, StreamingContext)
[C#] protected NotSupportedException(SerializationInfo, StreamingContext);
[C++] protected: NotSupportedException(SerializationInfo*, StreamingContext);
[JScript] protected function NotSupportedException(SerializationInfo, StreamingContext);

Initializes a new instance of the NotSupportedException class with a specified error message and a reference to the inner exception that is the cause of this exception.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New(String, Exception)
[C#] public NotSupportedException(string, Exception);
[C++] public: NotSupportedException(String*, Exception*);
[JScript] public function NotSupportedException(String, Exception);

See Also

NotSupportedException Class | NotSupportedException Members | System Namespace

Show: