mscorlib(4.0.0.0) API with additions
XmlAttributeAttribute.cs
1 using System.Xml.Schema;
2 
4 {
6  [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.ReturnValue)]
7  [global::__DynamicallyInvokable]
9  {
10  private string attributeName;
11 
12  private Type type;
13 
14  private string ns;
15 
16  private string dataType;
17 
18  private XmlSchemaForm form;
19 
22  [global::__DynamicallyInvokable]
23  public Type Type
24  {
25  [global::__DynamicallyInvokable]
26  get
27  {
28  return type;
29  }
30  [global::__DynamicallyInvokable]
31  set
32  {
33  type = value;
34  }
35  }
36 
39  [global::__DynamicallyInvokable]
40  public string AttributeName
41  {
42  [global::__DynamicallyInvokable]
43  get
44  {
45  if (attributeName != null)
46  {
47  return attributeName;
48  }
49  return string.Empty;
50  }
51  [global::__DynamicallyInvokable]
52  set
53  {
54  attributeName = value;
55  }
56  }
57 
60  [global::__DynamicallyInvokable]
61  public string Namespace
62  {
63  [global::__DynamicallyInvokable]
64  get
65  {
66  return ns;
67  }
68  [global::__DynamicallyInvokable]
69  set
70  {
71  ns = value;
72  }
73  }
74 
77  [global::__DynamicallyInvokable]
78  public string DataType
79  {
80  [global::__DynamicallyInvokable]
81  get
82  {
83  if (dataType != null)
84  {
85  return dataType;
86  }
87  return string.Empty;
88  }
89  [global::__DynamicallyInvokable]
90  set
91  {
92  dataType = value;
93  }
94  }
95 
98  [global::__DynamicallyInvokable]
99  public XmlSchemaForm Form
100  {
101  [global::__DynamicallyInvokable]
102  get
103  {
104  return form;
105  }
106  [global::__DynamicallyInvokable]
107  set
108  {
109  form = value;
110  }
111  }
112 
114  [global::__DynamicallyInvokable]
116  {
117  }
118 
121  [global::__DynamicallyInvokable]
122  public XmlAttributeAttribute(string attributeName)
123  {
124  this.attributeName = attributeName;
125  }
126 
129  [global::__DynamicallyInvokable]
131  {
132  this.type = type;
133  }
134 
138  [global::__DynamicallyInvokable]
139  public XmlAttributeAttribute(string attributeName, Type type)
140  {
141  this.attributeName = attributeName;
142  this.type = type;
143  }
144  }
145 }
XmlAttributeAttribute(string attributeName, Type type)
Initializes a new instance of the T:System.Xml.Serialization.XmlAttributeAttribute class.
XmlAttributeAttribute(Type type)
Initializes a new instance of the T:System.Xml.Serialization.XmlAttributeAttribute class.
XmlSchemaForm
Indicates if attributes or elements need to be qualified with a namespace prefix.
Definition: XmlSchemaForm.cs:7
Represents the base class for custom attributes.
Definition: Attribute.cs:15
Definition: __Canon.cs:3
string Namespace
Gets or sets the XML namespace of the XML attribute.
Specifies that the T:System.Xml.Serialization.XmlSerializer must serialize the class member as an XML...
Represents type declarations: class types, interface types, array types, value types,...
Definition: Type.cs:18
AttributeTargets
Specifies the application elements on which it is valid to apply an attribute.
XmlAttributeAttribute(string attributeName)
Initializes a new instance of the T:System.Xml.Serialization.XmlAttributeAttribute class and specifie...
string DataType
Gets or sets the XSD data type of the XML attribute generated by the T:System.Xml....
XmlSchemaForm Form
Gets or sets a value that indicates whether the XML attribute name generated by the T:System....
XmlAttributeAttribute()
Initializes a new instance of the T:System.Xml.Serialization.XmlAttributeAttribute class.
string AttributeName
Gets or sets the name of the XML attribute.