blob: a1d48c83e73e31bbf505df59420df789347dee47 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
//
// System.Web.Services.Protocols.SoapHeaderAttribute.cs
//
// Author:
// Tim Coleman (tim@timcoleman.com)
//
// Copyright (C) Tim Coleman, 2002
//
namespace System.Web.Services.Protocols {
[AttributeUsage (AttributeTargets.Method, AllowMultiple = true, Inherited = true)]
public sealed class SoapHeaderAttribute : Attribute {
#region Fields
SoapHeaderDirection direction;
string memberName;
bool required;
#endregion // Fields
#region Constructors
public SoapHeaderAttribute (string memberName)
{
direction = SoapHeaderDirection.In;
this.memberName = memberName;
required = true;
}
#endregion // Constructors
#region Properties
public SoapHeaderDirection Direction {
get { return direction; }
set { direction = value; }
}
public string MemberName {
get { return memberName; }
set { memberName = value; }
}
#if NET_1_1
[Obsolete ("This property will be removed from a future"
+ " version. The presence of a particular header"
+ " in a SOAP message is no longer enforced", false)]
#endif
public bool Required {
get { return required; }
set { required = value; }
}
#endregion // Properties
}
}
|