Język

AtomPub10ServiceDocumentFormatter<TServiceDocument> Klasa

Definicja

Formater, który serializuje klasy pochodzące z ServiceDocument wystąpienia do i z xml przy użyciu formatów Atom 1.0.

generic <typename TServiceDocument>
 where TServiceDocument : ServiceDocumentgcnew()public ref class AtomPub10ServiceDocumentFormatter : System::ServiceModel::Syndication::AtomPub10ServiceDocumentFormatter
public class AtomPub10ServiceDocumentFormatter<TServiceDocument> : System.ServiceModel.Syndication.AtomPub10ServiceDocumentFormatter where TServiceDocument : ServiceDocument, new()
type AtomPub10ServiceDocumentFormatter<'ServiceDocument (requires 'ServiceDocument :> ServiceDocument and 'ServiceDocument : (new : unit -> 'ServiceDocument))> = class
    inherit AtomPub10ServiceDocumentFormatter
Public Class AtomPub10ServiceDocumentFormatter(Of TServiceDocument)
Inherits AtomPub10ServiceDocumentFormatter

Parametry typu

TServiceDocument

Klasa pochodząca ServiceDocument z wystąpienia, które ma być serializowane na XML lub deserializowane z XML przy użyciu formatowania Atom 1.0.

Dziedziczenie
AtomPub10ServiceDocumentFormatter<TServiceDocument>

Uwagi

Jeśli chcesz serializować lub deserializować ServiceDocument wystąpienie zamiast obiektu pochodzącego z tego wystąpienia ServiceDocumentklasy , zamiast tego należy użyć AtomPub10ServiceDocumentFormatter klasy formatującego.

Konstruktory

Nazwa Opis
AtomPub10ServiceDocumentFormatter<TServiceDocument>()

Tworzy nowe wystąpienie ServiceDocumentFormatter klasy.

AtomPub10ServiceDocumentFormatter<TServiceDocument>(TServiceDocument)

Tworzy nowe wystąpienie klasy opartej ServiceDocumentFormatter na atomie 1.0.

Właściwości

Nazwa Opis
Document

ServiceDocument Pobiera element skojarzony z formaterem.

(Odziedziczone po ServiceDocumentFormatter)
Version

Pobiera nazwę przestrzeni nazw protokołu Publikowania Atom.

(Odziedziczone po AtomPub10ServiceDocumentFormatter)

Metody

Nazwa Opis
CanRead(XmlReader)

Sprawdza, czy określony czytnik XML zawiera prawidłowy dokument usługi.

(Odziedziczone po AtomPub10ServiceDocumentFormatter)
CreateDocumentInstance()

Tworzy nowe ServiceDocument wystąpienie skojarzone z formaterem Atom 1.0.

Equals(Object)

Określa, czy określony obiekt jest równy bieżącemu obiektowi.

(Odziedziczone po Object)
GetHashCode()

Służy jako domyślna funkcja skrótu.

(Odziedziczone po Object)
GetType()

Pobiera Type bieżącego wystąpienia.

(Odziedziczone po Object)
MemberwiseClone()

Tworzy płytkią kopię bieżącego Object.

(Odziedziczone po Object)
ReadFrom(XmlReader)

ServiceDocument Generuje obiekt na podstawie określonego czytnika XML.

(Odziedziczone po AtomPub10ServiceDocumentFormatter)
SetDocument(ServiceDocument)

Ustawia parametr ServiceDocument do zapisu.

(Odziedziczone po ServiceDocumentFormatter)
ToString()

Zwraca ciąg reprezentujący bieżący obiekt.

(Odziedziczone po Object)
WriteTo(XmlWriter)

ServiceDocument Zapisuje obiekt skojarzony z formaterem do określonego składnika zapisywania XML.

(Odziedziczone po AtomPub10ServiceDocumentFormatter)

Jawne implementacje interfejsu

Nazwa Opis
IXmlSerializable.GetSchema()

Ta metoda jest zarezerwowana i nie powinna być używana.

(Odziedziczone po AtomPub10ServiceDocumentFormatter)
IXmlSerializable.ReadXml(XmlReader)

Generuje element ServiceDocument na podstawie reprezentacji XML.

(Odziedziczone po AtomPub10ServiceDocumentFormatter)
IXmlSerializable.WriteXml(XmlWriter)

Konwertuje element ServiceDocument na reprezentację XML.

(Odziedziczone po AtomPub10ServiceDocumentFormatter)

Dotyczy