XRoadLib


XRoadXmlElementAttribute

Namespace: XRoadLib.Attributes

Indicates that a public field or property represents an XML element when the serializer serializes or deserializes the object that contains it.

Constructors

ConstructorDescription
new()
Signature: unit -> unit

Initializes a new instance of the XRoadXmlElementAttribute class.

new(elementName)
Signature: elementName:string -> unit

Initializes a new instance of the XRoadXmlElementAttribute class and specifies the name of the XML element. The XML element name of the serialized member.

new(elementName, type)
Signature: (elementName:string * type:Type) -> unit

Initializes a new instance of the XmlElementAttribute and specifies the name of the XML element and a derived type for the member to which the XRoadXmlElementAttribute is applied.

new(type)
Signature: type:Type -> unit

Initializes a new instance of the XmlElementAttribute class and specifies a type for the member to which the XmlElementAttribute is applied.

Instance members

Instance memberDescription
IsOptional()
Signature: unit -> unit

Indicates if this element must occur in serialized XML or not. Is internally controlled by MinOccurs property so that true value specifies MinOccurs value 0 and false value specifies MinOccurs value 1.

UseXop()
Signature: unit -> unit

Use MTOM/XOP standard for binary content serialization (default value is true).

Fork me on GitHub