MulticastNotSupportedException.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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.
  4. ////////////////////////////////////////////////////////////////////////////////
  5. // MulticastNotSupportedException
  6. // This is thrown when you add multiple callbacks to a non-multicast delegate.
  7. ////////////////////////////////////////////////////////////////////////////////
  8. using System.Runtime.Serialization;
  9. namespace System
  10. {
  11. [Serializable]
  12. [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
  13. public sealed class MulticastNotSupportedException : SystemException
  14. {
  15. public MulticastNotSupportedException()
  16. : base(SR.Arg_MulticastNotSupportedException)
  17. {
  18. HResult = HResults.COR_E_MULTICASTNOTSUPPORTED;
  19. }
  20. public MulticastNotSupportedException(string message)
  21. : base(message)
  22. {
  23. HResult = HResults.COR_E_MULTICASTNOTSUPPORTED;
  24. }
  25. public MulticastNotSupportedException(string message, Exception inner)
  26. : base(message, inner)
  27. {
  28. HResult = HResults.COR_E_MULTICASTNOTSUPPORTED;
  29. }
  30. internal MulticastNotSupportedException(SerializationInfo info, StreamingContext context) : base(info, context)
  31. {
  32. }
  33. }
  34. }