AtomPub10ServiceDocumentFormatter Constructor (Type)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Creates a new instance of the Atom 1.0-based ServiceDocumentFormatter class.

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

public AtomPub10ServiceDocumentFormatter(
	Type documentTypeToCreate
)

Parameters

documentTypeToCreate
Type: System.Type

The instance of an object that is derived from a ServiceDocument type that is associated with the Atom 1.0 formatter.

Exception Condition
ArgumentNullException

documentTypeToCreate is null.

ArgumentException

documentTypeToCreate specified is not valid.

The documentTypeToCreate 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: