通过


RemotingSurrogateSelector 类

定义

选择可用于序列化派生自 <a0/> 的对象的远程代理项。

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 注册的代理项供 BinaryFormatterSoapFormatter.

在远程处理目的 MarshalByRefObject的序列化过程中,远程处理代理项将创建一个 ObjRef 包含激活和与远程对象通信所需的所有相关信息。 然后,新创建的 ObjRef 可以发送到远程位置,并用于创建代理。

注释

此类在类级别发出链接需求和继承需求。 当直接调用方或派生类没有基础结构权限时,将引发 A SecurityException 。 有关安全需求的详细信息,请参阅 链接需求

构造函数

名称 说明
RemotingSurrogateSelector()

初始化 RemotingSurrogateSelector 类的新实例。

属性

名称 说明
Filter

获取或设置 MessageSurrogateFilter 当前实例的 RemotingSurrogateSelector委托。

方法

名称 说明
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 格式。

适用于

另请参阅