System.Xml
[00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00]
1.0.5000.0
2.0.0.0
4.0.0.0
To be added
System.Attribute
System.AttributeUsage(System.AttributeTargets.Property | System.AttributeTargets.Field | System.AttributeTargets.Parameter | System.AttributeTargets.ReturnValue | System.AttributeTargets.All)
The class belongs to a family of attributes that controls how the serializes, or deserializes, an object as encoded SOAP XML. The resulting XML conforms to section 5 of the World Wide Web Consortium (www.w3.org) document, "Simple Object Access Protocol (SOAP) 1.1". For a complete list of similar attributes, see Attributes That Control Encoded SOAP Serialization.
To serialize an object as an encoded SOAP message, you must construct the using an created with the method of the class.
Apply the to a public field to specify that the serializes the field as an XML attribute. You can specify an alternative name of the attribute by setting the property. Set the if the attribute must be given a specific XML Schema definition language (XSD) data type. If the attribute belongs to a specific XML namespace, set the property.
For more information about using attributes, see Extending Metadata Using Attributes
You can use the word SoapAttribute in your code instead of the longer .
Specifies that the must serialize the class member as an encoded SOAP attribute.
Constructor
1.0.5000.0
2.0.0.0
4.0.0.0
Use this constructor to create a when you override the serialization of a class member. Create the , set its properties, and set the object to the property of a object. For more details, see the class overview.
Initializes a new instance of the class.
Constructor
1.0.5000.0
2.0.0.0
4.0.0.0
To be added
Initializes a new instance of the class using the specified value as the name of the XML attribute.
The name of the XML attribute.
Property
1.0.5000.0
2.0.0.0
4.0.0.0
System.String
To be added: an object of type 'string'
Use the property to specify an XML attribute name when the default value cannot be used. For example, if the XML attribute name is invalid as a member identifier, use a valid name for the identifier while setting the to an invalid name.
Gets or sets the name of the XML attribute generated by the .
Property
1.0.5000.0
2.0.0.0
4.0.0.0
System.String
To be added: an object of type 'string'
The following table lists the XML Schema simple data types with their.NET equivalents.
For the XML Schema base64Binary and hexBinary data types, use an array of structures, and apply a with the set to "base64Binary" or "hexBinary", as appropriate. For the XML Schema time and date data types, use the type and apply the with the set to "date" or "time".
For every XML Schema data type that is mapped to a string, apply the with its property set to the XML Schema data type. Note that this does not change the serialization format, only the schema for the member.
The property is case-sensitive, so you must set it exactly to one of the XML Schema data types.
Passing binary data as an XML element is more efficient then passing it as an XML attribute.
For more information about XML Schema data types, see the World Wide Consortium (www.w3.org) document named "XML Schema Part 2: Datatypes".
-
XSD data type
.NET data type
-
anyURI
-
base64Binary
Array of objects
-
boolean
-
byte
-
date
-
dateTime
-
decimal
-
double
-
ENTITY
-
ENTITIES
-
float
-
gDay
-
gMonth
-
gMonthDay
-
gYear
-
gYearMonth
-
hexBinary
Array of objects
-
ID
-
IDREF
-
IDREFS
-
int
-
integer
-
language
-
long
-
Name
-
NCName
-
negativeInteger
-
NMTOKEN
-
NMTOKENS
-
normalizedString
-
nonNegativeInteger
-
nonPositiveInteger
-
NOTATION
-
positiveInteger
-
QName
-
duration
-
string
-
short
-
time
-
token
-
unsignedByte
-
unsignedInt
-
unsignedLong
-
unsignedShort
Gets or sets the XML Schema definition language (XSD) data type of the SOAP attribute generated by the .
Property
1.0.5000.0
2.0.0.0
4.0.0.0
System.String
To be added: an object of type 'string'
The property conforms to the World Wide Web Consortium (www.w3.org) specification "Namespaces in XML".
To create namespaces that are associated with prefixes, you must create an that contains the namespaces and prefixes used in the XML document. The namespace you set for each must match one of the namespaces in the . When the generates the XML code, it correctly prefixes each attribute name.
Gets or sets the XML namespace of the XML attribute.