Bagikan melalui


XmlTextAttribute.Type Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the type of the member.

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

Syntax

'Declaration
Public Property Type As Type
public Type Type { get; set; }

Property Value

Type: System.Type
The Type of the member.

Remarks

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.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.