RemotingSurrogateSelector 類別

定義

選取可以用來序列化衍生自 MarshalByRefObject 的物件的遠端代理。

public ref class RemotingSurrogateSelector : System::Runtime::Serialization::ISurrogateSelector
public class RemotingSurrogateSelector : System.Runtime.Serialization.ISurrogateSelector
[System.Runtime.InteropServices.ComVisible(true)]
public class RemotingSurrogateSelector : System.Runtime.Serialization.ISurrogateSelector
[System.Runtime.InteropServices.ComVisible(true)]
[System.Security.SecurityCritical]
public class RemotingSurrogateSelector : System.Runtime.Serialization.ISurrogateSelector
type RemotingSurrogateSelector = class
    interface ISurrogateSelector
[<System.Runtime.InteropServices.ComVisible(true)>]
type RemotingSurrogateSelector = class
    interface ISurrogateSelector
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Security.SecurityCritical>]
type RemotingSurrogateSelector = class
    interface ISurrogateSelector
Public Class RemotingSurrogateSelector
Implements ISurrogateSelector
繼承
RemotingSurrogateSelector
屬性
實作

備註

Surrogate 是可以處理物件串行化需求的物件。 遠端代理處理衍生自 MarshalByRefObject之物件的遠端串行化需求。 會RemotingSurrogateSelector管理註冊的 Surrogate,以供 和 SoapFormatter使用BinaryFormatter

在遠端處理用途 MarshalByRefObject的串行化期間,遠端代理會建立 , ObjRef 其中包含啟動和與遠端物件通訊所需的所有相關信息。 然後,新建立 ObjRef 的可以傳送至遠端位置,並用來建立 Proxy。

注意

這個類別會在類別層級建立連結需求和繼承需求。 SecurityException當立即呼叫端或衍生類別沒有基礎結構權限時,就會擲回 。 如需安全性需求的詳細資訊,請參閱 連結需求繼承需求

建構函式

RemotingSurrogateSelector()

初始化 RemotingSurrogateSelector 類別的新執行個體。

屬性

Filter

取得或設定 MessageSurrogateFilter 目前執行個體的 RemotingSurrogateSelector 委派。

方法

ChainSelector(ISurrogateSelector)

加入指定ISurrogateSelector 至代理選取器鏈結。

Equals(Object)

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

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetNextSelector()

傳回代理選取器鏈結中的下一個 ISurrogateSelector

GetRootObject()

傳回位於物件 Graph 的根 (Root) 的物件。

GetSurrogate(Type, StreamingContext, ISurrogateSelector)

傳回指定內容中指定型別的適當代理。

GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
SetRootObject(Object)

設定位於物件 Graph 的根的物件。

ToString()

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

(繼承來源 Object)
UseSoapFormat()

設定要使用 SOAP 格式的目前代理選取器。

適用於

另請參閱