語言

AtomPub10ServiceDocumentFormatter<TServiceDocument> 類別

定義

一個格式化器,能將從實 ServiceDocument 例衍生的類別序列化到並從 XML 轉為 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

類型參數

TServiceDocument

這個類別是從 ServiceDocument 一個實例衍生出來,該實例將要序列化成 XML 或使用 Atom 1.0 格式從 XML 反序列化。

繼承
AtomPub10ServiceDocumentFormatter<TServiceDocument>

備註

如果你想序列化或反序列化一個 ServiceDocument 實例,而不是從這個實例 ServiceDocument衍生出的物件,請使用 AtomPub10ServiceDocumentFormatter 格式化器。

建構函式

名稱 Description
AtomPub10ServiceDocumentFormatter<TServiceDocument>()

建立一個新的類別實例 ServiceDocumentFormatter 。

AtomPub10ServiceDocumentFormatter<TServiceDocument>(TServiceDocument)

建立一個基於 ServiceDocumentFormatter Atom 1.0 的類別新實例。

屬性

名稱 Description
Document

它會與 ServiceDocument 格式化器相關聯。

(繼承來源 ServiceDocumentFormatter)
Version

取得 Atom Publishing Protocol 命名空間名稱。

(繼承來源 AtomPub10ServiceDocumentFormatter)

方法

名稱 Description
CanRead(XmlReader)

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

(繼承來源 AtomPub10ServiceDocumentFormatter)
CreateDocumentInstance()

建立一個與 Atom 1.0 格式化器相關的新 ServiceDocument 實例。

Equals(Object)

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

(繼承來源 Object)
GetHashCode()

做為預設哈希函式。

(繼承來源 Object)
GetType()

取得目前實例的 Type。

(繼承來源 Object)
MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
ReadFrom(XmlReader)

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

(繼承來源 AtomPub10ServiceDocumentFormatter)
SetDocument(ServiceDocument)

設定 ServiceDocument 要寫。

(繼承來源 ServiceDocumentFormatter)
ToString()

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

(繼承來源 Object)
WriteTo(XmlWriter)

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

(繼承來源 AtomPub10ServiceDocumentFormatter)

明確介面實作

名稱 Description
IXmlSerializable.GetSchema()

此方法為保留,不應使用。

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

從其 XML 表示產生 a ServiceDocument 。

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

將 轉換為 ServiceDocument 其 XML 表示法。

(繼承來源 AtomPub10ServiceDocumentFormatter)

適用於