SoapElementAttribute | System.Xml.Serialization (system.xml.dll) CF 1.0 class |
public class SoapElementAttribute : Attribute {
// Public Constructors
public SoapElementAttribute( );
public SoapElementAttribute( string elementName);
// Public Instance Properties
public string DataType{set; get; }
public string ElementName{set; get; }
public bool IsNullable{set; get; }
} | |
This attribute
is used to indicate that the field it is attached to should be
serialized as a SOAP element by the XmlSerializer.
Its ElementName property specifies the name of the
element, and its DataType property specifies its
XML Schema datatype. The IsNullable property can
be used to set the element's
xsi:nil attribute, which indicates a null value
for the element. Like all the SOAP attributes, it can be applied in
code or via the SoapAttributeOverrides object.
Hierarchy
System.Object
System.Attribute
SoapElementAttribute
Valid On
Property, Field, Parameter, ReturnValue
|