The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
NetDataContractSerializer Constructor (String^, String^)
.NET Framework (current version)
Initializes a new instance of the NetDataContractSerializer class with the supplied XML root element and namespace.
Assembly: System.Runtime.Serialization (in System.Runtime.Serialization.dll)
Parameters
- 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.
The following example creates an instance of the DataContractSerializer specifying the XML root element and namespace it will expect when deserializing an object.
.NET Framework
Available since 3.0
Available since 3.0
Show: