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 ////////////////////////////////////////////////////////////////////////////////
6 // MulticastNotSupportedException
7 // This is thrown when you add multiple callbacks to a non-multicast delegate.
8 ////////////////////////////////////////////////////////////////////////////////
10 using System
.Runtime
.Serialization
;
15 [System
.Runtime
.CompilerServices
.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
16 public sealed class MulticastNotSupportedException
: SystemException
18 public MulticastNotSupportedException()
19 : base(SR
.Arg_MulticastNotSupportedException
)
21 HResult
= HResults
.COR_E_MULTICASTNOTSUPPORTED
;
24 public MulticastNotSupportedException(string? message
)
27 HResult
= HResults
.COR_E_MULTICASTNOTSUPPORTED
;
30 public MulticastNotSupportedException(string? message
, Exception
? inner
)
31 : base(message
, inner
)
33 HResult
= HResults
.COR_E_MULTICASTNOTSUPPORTED
;
36 private MulticastNotSupportedException(SerializationInfo info
, StreamingContext context
) : base(info
, context
)