Type Property
Collapse the table of content
Expand the table of content

XmlTextAttribute.Type Property

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

Gets or sets the type of the member.

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

public Type Type { get; set; }

Property Value

Type: System.Type
The Type of the member.

The Type property can be set only to primitive types and enumerations.

You can apply the XmlTextAttribute to a field or property that returns an array of strings. You can also apply the attribute to an array of type Object, but you must set the Type property to string. In that case, any strings inserted into the array are serialized as XML text.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft