Windows apps
Collapse the table of content
Expand the table of content
Information
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^)

 

Initializes a new instance of the NetDataContractSerializer class with the supplied XML root element and namespace.

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

public:
NetDataContractSerializer(
	String^ rootName,
	String^ rootNamespace
)

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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft