The Labs \ Source Viewer \ SSCLI \ System.Net \ CookieException

  1. //------------------------------------------------------------------------------
  2. // <copyright file="cookieexception.cs" company="Microsoft">
  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. // </copyright>
  14. //------------------------------------------------------------------------------
  15. namespace System.Net
  16. {
  17.     using System.Runtime.Serialization;
  18.     using System.Security.Permissions;
  19.    
  20.     /// <devdoc>
  21.     /// <para>[To be supplied.]</para>
  22.     /// </devdoc>
  23.     [Serializable()]
  24.     public class CookieException : FormatException, ISerializable
  25.     {
  26.         /// <devdoc>
  27.         /// <para>[To be supplied.]</para>
  28.         /// </devdoc>
  29.         public CookieException() : base()
  30.         {
  31.         }
  32.        
  33.         internal CookieException(string message) : base(message)
  34.         {
  35.         }
  36.        
  37.         internal CookieException(string message, Exception inner) : base(message, inner)
  38.         {
  39.         }
  40.        
  41.         protected CookieException(SerializationInfo serializationInfo, StreamingContext streamingContext) : base(serializationInfo, streamingContext)
  42.         {
  43.         }
  44.        
  45.         /// <internalonly/>
  46.        
  47.        
  48.         [SecurityPermission(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.SerializationFormatter, SerializationFormatter = true)]
  49.         void ISerializable.GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext)
  50.         {
  51.             base.GetObjectData(serializationInfo, streamingContext);
  52.         }
  53.        
  54.        
  55.         [SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.SerializationFormatter)]
  56.         public override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext)
  57.         {
  58.             base.GetObjectData(serializationInfo, streamingContext);
  59.         }
  60.     }
  61. }

Developer Fusion