RemotingSurrogateSelector 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
選擇可用於序列化源自 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
- 屬性
- 實作
備註
代理者是一種能處理物件序列化需求的物件。 遠端代理處理源 MarshalByRefObject自 的物件的遠端序列化需求。 管理 RemotingSurrogateSelector 註冊的替代文件供 BinaryFormatter 和 SoapFormatter使用。
在序列化以進行遠端MarshalByRefObject存取時,遠端代理會建立包含啟動及與遠端物件通訊所需所有相關資訊的 。ObjRef 新建立 ObjRef 的檔案可被傳送至遠端地點,並用來建立代理伺服器。
Note
此類別在類別層級提出連結需求與繼承需求。 當直接呼叫者或衍生類別沒有基礎設施權限時,會拋出 A SecurityException 。 關於安全要求的詳細資訊,請參見 連結需求 與 繼承需求。
建構函式
| 名稱 | Description |
|---|---|
| RemotingSurrogateSelector() |
初始化 RemotingSurrogateSelector 類別的新執行個體。 |
屬性
| 名稱 | Description |
|---|---|
| Filter |
取得或設定 MessageSurrogateFilter 當前實例 RemotingSurrogateSelector的代理。 |
方法
| 名稱 | Description |
|---|---|
| ChainSelector(ISurrogateSelector) |
將指定的 ISurrogateSelector 資料加入代理選擇器鏈。 |
| Equals(Object) |
判斷指定的物件是否等於目前的物件。 (繼承來源 Object) |
| GetHashCode() |
做為預設哈希函式。 (繼承來源 Object) |
| GetNextSelector() |
回傳下一個 ISurrogateSelector 替代選擇者鏈條。 |
| GetRootObject() |
回傳物件圖根節點的物件。 |
| GetSurrogate(Type, StreamingContext, ISurrogateSelector) |
回傳給定類型在特定上下文中的適當代理。 |
| GetType() |
取得目前實例的 Type。 (繼承來源 Object) |
| MemberwiseClone() |
建立目前 Object的淺層複本。 (繼承來源 Object) |
| SetRootObject(Object) |
將物件設在物件圖的根節點。 |
| ToString() |
傳回表示目前 物件的字串。 (繼承來源 Object) |
| UseSoapFormat() |
將目前的代理選擇器設定為使用 SOAP 格式。 |