The Labs \ Source Viewer \ SSCLI \ System \ MulticastNotSupportedException

  1. // ==++==
  2. //
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. //
  14. // ==--==
  15. ////////////////////////////////////////////////////////////////////////////////
  16. // MulticastNotSupportedException
  17. // This is thrown when you add multiple callbacks to a non-multicast delegate.
  18. ////////////////////////////////////////////////////////////////////////////////
  19. namespace System
  20. {
  21.    
  22.     using System;
  23.     using System.Runtime.Serialization;
  24.     [System.Runtime.InteropServices.ComVisible(true)]
  25.     [Serializable()]
  26.     public sealed class MulticastNotSupportedException : SystemException
  27.     {
  28.        
  29.         public MulticastNotSupportedException() : base(Environment.GetResourceString("Arg_MulticastNotSupportedException"))
  30.         {
  31.             SetErrorCode(__HResults.COR_E_MULTICASTNOTSUPPORTED);
  32.         }
  33.        
  34.         public MulticastNotSupportedException(string message) : base(message)
  35.         {
  36.             SetErrorCode(__HResults.COR_E_MULTICASTNOTSUPPORTED);
  37.         }
  38.        
  39.         public MulticastNotSupportedException(string message, Exception inner) : base(message, inner)
  40.         {
  41.             SetErrorCode(__HResults.COR_E_MULTICASTNOTSUPPORTED);
  42.         }
  43.        
  44.         internal MulticastNotSupportedException(SerializationInfo info, StreamingContext context) : base(info, context)
  45.         {
  46.         }
  47.        
  48.     }
  49. }

Developer Fusion