共用方式為


BinaryClientFormatterSinkProvider 類別

定義

提供二進位用戶端格式化器匯入提供者的實作。

public ref class BinaryClientFormatterSinkProvider : System::Runtime::Remoting::Channels::IClientFormatterSinkProvider
public class BinaryClientFormatterSinkProvider : System.Runtime.Remoting.Channels.IClientFormatterSinkProvider
type BinaryClientFormatterSinkProvider = class
    interface IClientFormatterSinkProvider
    interface IClientChannelSinkProvider
Public Class BinaryClientFormatterSinkProvider
Implements IClientFormatterSinkProvider
繼承
BinaryClientFormatterSinkProvider
實作

備註

A BinaryClientFormatterSinkProvider 建立用戶端格式化器匯入器,利用 將 BinaryFormatter 訊息序列化至用戶端通道,透過該通道傳遞遠端訊息。

格式化器匯入器的功能是產生必要的標頭並將訊息序列化到串流。 在 formatter sink 之後,會IMessage透過 or AsyncProcessRequest 呼叫轉發到 channel sink 鏈ProcessMessage中的所有 sink。 此時,訊息已序列化,僅以資訊形式提供。 需要建立或修改訊息的匯款必須放在匯入鏈中,排版器之前。 你可以透過實作 IMessageSinkIClientChannelSink 介面來達成。 成形機的水槽之後可以放入水槽鏈中。

Formatter 匯流器使用匯組設定屬性在執行時配置通道。 匯入屬性可以在設定檔中指定,或以 IDictionary程式方式在 . 在設定檔中,所有值都以字串表示,但在程式化建構屬性 IDictionary 時,值型別可以用其原生值或字串來指定。

下表顯示目前匯式提供者可指定的匯組設定屬性。

房產 說明
includeVersions 指定格式化器是否包含版本管理資訊。 值為 truefalse

這很重要

使用該物件的實例與不受信任的資料或跨越不安全的通道,構成安全風險。 此物件僅用於受信任的資料,且透過安全通道。 如需詳細資訊,請參閱 驗證所有輸入

建構函式

名稱 Description
BinaryClientFormatterSinkProvider()

初始化一個以預設值的新類別實例 BinaryClientFormatterSinkProvider

BinaryClientFormatterSinkProvider(IDictionary, ICollection)

初始化一個新的類別實例 BinaryClientFormatterSinkProvider ,並使用給定的屬性與提供者資料。

屬性

名稱 Description
Next

負責接收或設定下一個 IClientChannelSinkProvider 水槽供應商鏈。

方法

名稱 Description
CreateSink(IChannelSender, String, Object)

形成一個水槽鏈。

Equals(Object)

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

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前實例的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
ToString()

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

(繼承來源 Object)

適用於

另請參閱