RemotingSurrogateSelector 类  
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
选择可用于序列化从 MarshalByRefObject 派生的对象的远程处理代理项。
public ref class RemotingSurrogateSelector : System::Runtime::Serialization::ISurrogateSelectorpublic 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.ISurrogateSelectortype 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 ISurrogateSelectorPublic Class RemotingSurrogateSelector
Implements ISurrogateSelector- 继承
- 
				RemotingSurrogateSelector
- 属性
- 实现
注解
代理项是可以处理对象的序列化要求的对象。 远程代理项处理从 MarshalByRefObject派生的 对象的远程序列化要求。 管理RemotingSurrogateSelector由 和 SoapFormatter使用的BinaryFormatter已注册代理项。
在出于 远程处理目的进行 MarshalByRefObject序列化期间,远程代理项会创建一个 ObjRef ,其中包含激活远程对象并与之通信所需的所有相关信息。 然后,新创建的 ObjRef 可以发送到远程位置,并用于创建代理。
注意
此类在类级别发出链接需求和继承需求。 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 格式。 |