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
屬性
實作

備註

代理是一個物件,可以處理物件的序列化需求。 遠端代理程式會處理衍生自之物件的遠端序列化需求 MarshalByRefObjectRemotingSurrogateSelector管理已註冊的代理程式,供 BinaryFormatter 和使用 SoapFormatter

在序列化期間 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 格式的目前代理選取器。

適用於

另請參閱