語言

AtomPub10ServiceDocumentFormatter 建構函式

定義

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

多載

名稱 Description
AtomPub10ServiceDocumentFormatter()

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

AtomPub10ServiceDocumentFormatter(ServiceDocument)

建立基於 Atom 1.0 ServiceDocumentFormatter 的類別的新實例,以序列化指定的服務文件。

AtomPub10ServiceDocumentFormatter(Type)

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

AtomPub10ServiceDocumentFormatter()

來源:
AtomPub10ServiceDocumentFormatter.cs
來源:
AtomPub10ServiceDocumentFormatter.cs
來源:
AtomPub10ServiceDocumentFormatter.cs
來源:
AtomPub10ServiceDocumentFormatter.cs

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

public:
 AtomPub10ServiceDocumentFormatter();
public AtomPub10ServiceDocumentFormatter();
Public Sub New ()

適用於

AtomPub10ServiceDocumentFormatter(ServiceDocument)

來源:
AtomPub10ServiceDocumentFormatter.cs
來源:
AtomPub10ServiceDocumentFormatter.cs
來源:
AtomPub10ServiceDocumentFormatter.cs
來源:
AtomPub10ServiceDocumentFormatter.cs

建立基於 Atom 1.0 ServiceDocumentFormatter 的類別的新實例,以序列化指定的服務文件。

public:
 AtomPub10ServiceDocumentFormatter(System::ServiceModel::Syndication::ServiceDocument ^ documentToWrite);
public AtomPub10ServiceDocumentFormatter(System.ServiceModel.Syndication.ServiceDocument documentToWrite);
new System.ServiceModel.Syndication.AtomPub10ServiceDocumentFormatter : System.ServiceModel.Syndication.ServiceDocument -> System.ServiceModel.Syndication.AtomPub10ServiceDocumentFormatter
Public Sub New (documentToWrite As ServiceDocument)

參數

documentToWrite
ServiceDocument

這與 ServiceDocument Atom 1.0 格式化器有關。

例外狀況

documentToWrite 是 null。

備註

documentToWrite格式化器可透過 Atom 1.0 格式序列化為 XML 表示法,或從 XML 表示法反序列化。

適用於

AtomPub10ServiceDocumentFormatter(Type)

來源:
AtomPub10ServiceDocumentFormatter.cs
來源:
AtomPub10ServiceDocumentFormatter.cs
來源:
AtomPub10ServiceDocumentFormatter.cs
來源:
AtomPub10ServiceDocumentFormatter.cs

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

public:
 AtomPub10ServiceDocumentFormatter(Type ^ documentTypeToCreate);
public AtomPub10ServiceDocumentFormatter(Type documentTypeToCreate);
new System.ServiceModel.Syndication.AtomPub10ServiceDocumentFormatter : Type -> System.ServiceModel.Syndication.AtomPub10ServiceDocumentFormatter
Public Sub New (documentTypeToCreate As Type)

參數

documentTypeToCreate
Type

一個物件實例,該物件是由與 Atom 1.0 格式化器相關聯的 ServiceDocument 型別衍生而來。

例外狀況

documentTypeToCreate 是 null。

documentTypeToCreate 但 指定 不成立。

備註

documentTypeToCreate格式化器可透過 Atom 1.0 格式序列化為 XML 表示法,或從 XML 表示法反序列化。

適用於