2 // System.Web.Services.Protocols.SoapHeaderAttribute.cs
\r
5 // Tim Coleman (tim@timcoleman.com)
\r
7 // Copyright (C) Tim Coleman, 2002
\r
10 namespace System.Web.Services.Protocols {
\r
11 [AttributeUsage (AttributeTargets.Method)]
\r
12 public sealed class SoapHeaderAttribute : Attribute {
\r
16 SoapHeaderDirection direction;
\r
20 #endregion // Fields
\r
22 #region Constructors
\r
24 public SoapHeaderAttribute (string memberName)
\r
26 direction = SoapHeaderDirection.In;
\r
27 this.memberName = memberName;
\r
31 #endregion // Constructors
\r
35 public SoapHeaderDirection Direction {
\r
36 get { return direction; }
\r
37 set { direction = value; }
\r
40 public string MemberName {
\r
41 get { return memberName; }
\r
42 set { memberName = value; }
\r
45 public bool Required {
\r
46 get { return required; }
\r
47 set { required = value; }
\r
50 #endregion // Properties
\r