1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
5 /*=============================================================================
9 ** Purpose: For methods that should be implemented on subclasses.
12 =============================================================================*/
14 using System
.Runtime
.Serialization
;
19 [System
.Runtime
.CompilerServices
.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
20 public class NotSupportedException
: SystemException
22 public NotSupportedException()
23 : base(SR
.Arg_NotSupportedException
)
25 HResult
= HResults
.COR_E_NOTSUPPORTED
;
28 public NotSupportedException(string? message
)
31 HResult
= HResults
.COR_E_NOTSUPPORTED
;
34 public NotSupportedException(string? message
, Exception
? innerException
)
35 : base(message
, innerException
)
37 HResult
= HResults
.COR_E_NOTSUPPORTED
;
40 protected NotSupportedException(SerializationInfo info
, StreamingContext context
) : base(info
, context
)