DataContractSerializer Constructor (Type, String, String)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Initializes a new instance of the DataContractSerializer class to serialize or deserialize an object of the specified type using the supplied XML root element and namespace.
Assembly: System.Runtime.Serialization (in System.Runtime.Serialization.dll)
'Declaration Public Sub New ( _ type As Type, _ rootName As String, _ rootNamespace As String _ )
Parameters
- type
- Type: System.Type
The type of the instances that are serialized or deserialized.
- rootName
- Type: System.String
The name of the XML element that encloses the content to serialize or deserialize.
- rootNamespace
- Type: System.String
The namespace of the XML element that encloses the content to serialize or deserialize.
Show: