mscorlib(4.0.0.0) API with additions
SoapAttributeAttribute.cs
2 {
4  [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.ReturnValue)]
6  {
7  private string attributeName;
8 
9  private string ns;
10 
11  private string dataType;
12 
15  public string AttributeName
16  {
17  get
18  {
19  if (attributeName != null)
20  {
21  return attributeName;
22  }
23  return string.Empty;
24  }
25  set
26  {
27  attributeName = value;
28  }
29  }
30 
33  public string Namespace
34  {
35  get
36  {
37  return ns;
38  }
39  set
40  {
41  ns = value;
42  }
43  }
44 
48  public string DataType
49  {
50  get
51  {
52  if (dataType != null)
53  {
54  return dataType;
55  }
56  return string.Empty;
57  }
58  set
59  {
60  dataType = value;
61  }
62  }
63 
66  {
67  }
68 
71  public SoapAttributeAttribute(string attributeName)
72  {
73  this.attributeName = attributeName;
74  }
75  }
76 }
string Namespace
Gets or sets the XML namespace of the XML attribute.
SoapAttributeAttribute()
Initializes a new instance of the T:System.Xml.Serialization.SoapAttributeAttribute class.
Represents the base class for custom attributes.
Definition: Attribute.cs:15
string DataType
Gets or sets the XML Schema definition language (XSD) data type of the SOAP attribute generated by th...
SoapAttributeAttribute(string attributeName)
Initializes a new instance of the T:System.Xml.Serialization.SoapAttributeAttribute class using the s...
AttributeTargets
Specifies the application elements on which it is valid to apply an attribute.
string AttributeName
Gets or sets the name of the XML attribute generated by the T:System.Xml.Serialization....
Specifies that the T:System.Xml.Serialization.XmlSerializer must serialize the class member as an enc...