The Labs \ Source Viewer \ SSCLI \ System.Runtime.Remoting.Messaging \ Header

  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. **
  17. ** File:    Header.cs
  18. **
  19. **
  20. ** Purpose: Defines the out-of-band data for a call
  21. **
  22. **
  23. **
  24. ===========================================================*/
  25. namespace System.Runtime.Remoting.Messaging
  26. {
  27.     using System.Runtime.Remoting;
  28.     using System;
  29.     [Serializable()]
  30.     [System.Runtime.InteropServices.ComVisible(true)]
  31.     public class Header
  32.     {
  33.        
  34.         public Header(string _Name, object _Value) : this(_Name, _Value, true)
  35.         {
  36.         }
  37.         public Header(string _Name, object _Value, bool _MustUnderstand)
  38.         {
  39.             Name = _Name;
  40.             Value = _Value;
  41.             MustUnderstand = _MustUnderstand;
  42.         }
  43.        
  44.         public Header(string _Name, object _Value, bool _MustUnderstand, string _HeaderNamespace)
  45.         {
  46.             Name = _Name;
  47.             Value = _Value;
  48.             MustUnderstand = _MustUnderstand;
  49.             HeaderNamespace = _HeaderNamespace;
  50.         }
  51.        
  52.         public string Name;
  53.         public object Value;
  54.         public bool MustUnderstand;
  55.        
  56.         public string HeaderNamespace;
  57.     }
  58. }

Developer Fusion