AtomPub10ServiceDocumentFormatter<TServiceDocument> Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new instance of the Atom 1.0-based ServiceDocumentFormatter class.
Overloads
AtomPub10ServiceDocumentFormatter<TServiceDocument>() |
Creates a new instance of the ServiceDocumentFormatter class. |
AtomPub10ServiceDocumentFormatter<TServiceDocument>(TServiceDocument) |
Creates a new instance of the Atom 1.0-based ServiceDocumentFormatter class. |
AtomPub10ServiceDocumentFormatter<TServiceDocument>()
Creates a new instance of the ServiceDocumentFormatter class.
public:
AtomPub10ServiceDocumentFormatter();
public AtomPub10ServiceDocumentFormatter ();
Public Sub New ()
Applies to
AtomPub10ServiceDocumentFormatter<TServiceDocument>(TServiceDocument)
Creates a new instance of the Atom 1.0-based ServiceDocumentFormatter class.
public:
AtomPub10ServiceDocumentFormatter(TServiceDocument documentToWrite);
public AtomPub10ServiceDocumentFormatter (TServiceDocument documentToWrite);
new System.ServiceModel.Syndication.AtomPub10ServiceDocumentFormatter<'ServiceDocument (requires 'ServiceDocument :> System.ServiceModel.Syndication.ServiceDocument and 'ServiceDocument : (new : unit -> 'ServiceDocument))> : 'ServiceDocument -> System.ServiceModel.Syndication.AtomPub10ServiceDocumentFormatter<'ServiceDocument (requires 'ServiceDocument :> System.ServiceModel.Syndication.ServiceDocument and 'ServiceDocument : (new : unit -> 'ServiceDocument))>
Public Sub New (documentToWrite As TServiceDocument)
Parameters
- documentToWrite
- TServiceDocument
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
.NET