Add Method

XmlElementAttributes.Add Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Adds an XmlElementAttribute to the collection.

Namespace:  System.Xml.Serialization
Assembly:  System.Xml.Serialization (in System.Xml.Serialization.dll)

public int Add(
	XmlElementAttribute attribute
)

Parameters

attribute
Type: System.Xml.Serialization.XmlElementAttribute
The XmlElementAttribute to add to the collection.

Return Value

Type: System.Int32
The index of the added item.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft