AtomPub10ServiceDocumentFormatter Constructor (ServiceDocument)

 

Creates a new instance of the Atom 1.0-based ServiceDocumentFormatter class to serialize a specified service document.

Namespace:   System.ServiceModel.Syndication
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public AtomPub10ServiceDocumentFormatter(
	ServiceDocument documentToWrite
)

Parameters

documentToWrite
Type: System.ServiceModel.Syndication.ServiceDocument

The ServiceDocument associated with the Atom 1.0 formatter.

Exception Condition
ArgumentNullException

documentToWrite is null.

The documentToWrite can be serialized to an XML representation or deserialized from an XML representation by the formatter using Atom 1.0 formats.

.NET Framework
Available since 3.5
Return to top
Show: