Edit

Share via


AtomPub10ServiceDocumentFormatter Constructors

Definition

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

Overloads

AtomPub10ServiceDocumentFormatter()

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

AtomPub10ServiceDocumentFormatter(ServiceDocument)

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

AtomPub10ServiceDocumentFormatter(Type)

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

AtomPub10ServiceDocumentFormatter()

Source:
AtomPub10ServiceDocumentFormatter.cs
Source:
AtomPub10ServiceDocumentFormatter.cs
Source:
AtomPub10ServiceDocumentFormatter.cs

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

public:
 AtomPub10ServiceDocumentFormatter();
public AtomPub10ServiceDocumentFormatter ();
Public Sub New ()

Applies to

AtomPub10ServiceDocumentFormatter(ServiceDocument)

Source:
AtomPub10ServiceDocumentFormatter.cs
Source:
AtomPub10ServiceDocumentFormatter.cs
Source:
AtomPub10ServiceDocumentFormatter.cs

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

public:
 AtomPub10ServiceDocumentFormatter(System::ServiceModel::Syndication::ServiceDocument ^ documentToWrite);
public AtomPub10ServiceDocumentFormatter (System.ServiceModel.Syndication.ServiceDocument documentToWrite);
new System.ServiceModel.Syndication.AtomPub10ServiceDocumentFormatter : System.ServiceModel.Syndication.ServiceDocument -> System.ServiceModel.Syndication.AtomPub10ServiceDocumentFormatter
Public Sub New (documentToWrite As ServiceDocument)

Parameters

documentToWrite
ServiceDocument

The ServiceDocument associated with the Atom 1.0 formatter.

Exceptions

documentToWrite is null.

Remarks

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

Applies to

AtomPub10ServiceDocumentFormatter(Type)

Source:
AtomPub10ServiceDocumentFormatter.cs
Source:
AtomPub10ServiceDocumentFormatter.cs
Source:
AtomPub10ServiceDocumentFormatter.cs

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

public:
 AtomPub10ServiceDocumentFormatter(Type ^ documentTypeToCreate);
public AtomPub10ServiceDocumentFormatter (Type documentTypeToCreate);
new System.ServiceModel.Syndication.AtomPub10ServiceDocumentFormatter : Type -> System.ServiceModel.Syndication.AtomPub10ServiceDocumentFormatter
Public Sub New (documentTypeToCreate As Type)

Parameters

documentTypeToCreate
Type

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

Exceptions

documentTypeToCreate is null.

documentTypeToCreate specified is not valid.

Remarks

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

Applies to