AtomPub10ServiceDocumentFormatter<TServiceDocument> 類別

定義

格式子,可使用 Atom 1.0 格式將 ServiceDocument 執行個體的衍生類別序列化為 XML,或從 XML 還原序列化。

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

類型參數

TServiceDocument

ServiceDocument 執行個體的衍生類別,可使用 Atom 1.0 格式來序列化為 XML,或從 XML 還原序列化。

繼承
AtomPub10ServiceDocumentFormatter<TServiceDocument>

備註

若要序列化或還原序列化 ServiceDocument 執行個體,而非 ServiceDocument 執行個體的衍生物件,請改用 AtomPub10ServiceDocumentFormatter 格式子。

建構函式

AtomPub10ServiceDocumentFormatter<TServiceDocument>()

建立 ServiceDocumentFormatter 類別的新執行個體。

AtomPub10ServiceDocumentFormatter<TServiceDocument>(TServiceDocument)

建立 Atom 1.0 架構之 ServiceDocumentFormatter 類別的新執行個體。

屬性

Document

取得與這個格式器相關聯的 ServiceDocument

(繼承來源 ServiceDocumentFormatter)
Version

取得 Atom 發行通訊協定命名空間的名稱。

(繼承來源 AtomPub10ServiceDocumentFormatter)

方法

CanRead(XmlReader)

測試指定的 XML 讀取器是否包含有效的服務文件。

(繼承來源 AtomPub10ServiceDocumentFormatter)
CreateDocumentInstance()

建立與 Atom 1.0 格式子相關聯的新 ServiceDocument 執行個體。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ReadFrom(XmlReader)

從指定的 XML 讀取器產生 ServiceDocument 物件。

(繼承來源 AtomPub10ServiceDocumentFormatter)
SetDocument(ServiceDocument)

設定要寫入的 ServiceDocument

(繼承來源 ServiceDocumentFormatter)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)
WriteTo(XmlWriter)

將與格式子相關聯的 ServiceDocument 物件寫入至指定的 XML 寫入器。

(繼承來源 AtomPub10ServiceDocumentFormatter)

明確介面實作

IXmlSerializable.GetSchema()

這個方法已保留且不應使用。

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

從物件的 XML 表示產生 ServiceDocument

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

ServiceDocument 轉換為其 XML 表示。

(繼承來源 AtomPub10ServiceDocumentFormatter)

適用於