AtomPub10ServiceDocumentFormatter<TServiceDocument> 類別

定義

格式子,可使用 Atom 1.0 格式將 ServiceDocument 執行個體的衍生類別序列化為 XML,或從 XML 還原序列化。A formatter that serializes classes derived from a ServiceDocument instance to and from XML using Atom 1.0 formats.

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

類型參數

TServiceDocument

ServiceDocument 執行個體的衍生類別,可使用 Atom 1.0 格式來序列化為 XML,或從 XML 還原序列化。The class derived from a ServiceDocument instance that is to be serialized to XML or deserialized from XML using Atom 1.0 formatting.

繼承
AtomPub10ServiceDocumentFormatter<TServiceDocument>

備註

若要序列化或還原序列化 ServiceDocument 執行個體,而非 ServiceDocument 執行個體的衍生物件,請改用 AtomPub10ServiceDocumentFormatter 格式子。If you want to serialize or deserialized a ServiceDocument instance instead of an object derived from this an instance of ServiceDocument, use the AtomPub10ServiceDocumentFormatter formatter instead.

建構函式

AtomPub10ServiceDocumentFormatter<TServiceDocument>()

建立 ServiceDocumentFormatter 類別的新執行個體。Creates a new instance of the ServiceDocumentFormatter class.

AtomPub10ServiceDocumentFormatter<TServiceDocument>(TServiceDocument)

建立 Atom 1.0 架構之 ServiceDocumentFormatter 類別的新執行個體。Creates a new instance of the Atom 1.0-based ServiceDocumentFormatter class.

屬性

Document

取得與這個格式器相關聯的 ServiceDocumentGets the ServiceDocument associated with the formatter.

(繼承來源 ServiceDocumentFormatter)
Version

取得 Atom 發行通訊協定命名空間的名稱。Gets the name of Atom Publishing Protocol namespace.

(繼承來源 AtomPub10ServiceDocumentFormatter)

方法

CanRead(XmlReader)

測試指定的 XML 讀取器是否包含有效的服務文件。Tests whether the specified XML reader contains a valid service document.

(繼承來源 AtomPub10ServiceDocumentFormatter)
CreateDocumentInstance()

建立與 Atom 1.0 格式子相關聯的新 ServiceDocument 執行個體。Creates a new ServiceDocument instance associated with the Atom 1.0 formatter.

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
ReadFrom(XmlReader)

從指定的 XML 讀取器產生 ServiceDocument 物件。Generates a ServiceDocument object from a specified XML reader.

(繼承來源 AtomPub10ServiceDocumentFormatter)
SetDocument(ServiceDocument)

設定要寫入的 ServiceDocumentSets the ServiceDocument to write.

(繼承來源 ServiceDocumentFormatter)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)
WriteTo(XmlWriter)

將與格式子相關聯的 ServiceDocument 物件寫入至指定的 XML 寫入器。Writes a ServiceDocument object associated with the formatter to a specified XML writer.

(繼承來源 AtomPub10ServiceDocumentFormatter)

明確介面實作

IXmlSerializable.GetSchema()

這個方法已保留且不應使用。This method is reserved and should not be used.

(繼承來源 AtomPub10ServiceDocumentFormatter)
IXmlSerializable.ReadXml(XmlReader)

從物件的 XML 表示產生 ServiceDocumentGenerates a ServiceDocument from its XML representation.

(繼承來源 AtomPub10ServiceDocumentFormatter)
IXmlSerializable.WriteXml(XmlWriter)

ServiceDocument 轉換為其 XML 表示。Converts the ServiceDocument into its XML representation.

(繼承來源 AtomPub10ServiceDocumentFormatter)

適用於