ActivitySurrogateSelector 类  
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*
选择可用于序列化 Activity 的代理项。 此类不能被继承。
public ref class ActivitySurrogateSelector sealed : System::Runtime::Serialization::SurrogateSelectorpublic sealed class ActivitySurrogateSelector : System.Runtime.Serialization.SurrogateSelector[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public sealed class ActivitySurrogateSelector : System.Runtime.Serialization.SurrogateSelectortype ActivitySurrogateSelector = class
    inherit SurrogateSelector[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type ActivitySurrogateSelector = class
    inherit SurrogateSelectorPublic NotInheritable Class ActivitySurrogateSelector
Inherits SurrogateSelector- 继承
- 属性
注解
注意
本材料讨论的类型和命名空间已废弃不用。 有关详细信息,请参阅 Windows Workflow Foundation 4.5 中弃用的类型。
序列化代理项提供一种对象,该对象可以处理不同对象的序列化需求,并且可以在必要时转换序列化数据。
构造函数
| ActivitySurrogateSelector() | 
				已过时.
			 初始化 ActivitySurrogateSelector 类的新实例。 | 
属性
| Default | 
				已过时.
			 获取默认的 ActivitySurrogateSelector。 此属性为只读。 | 
方法
| AddSurrogate(Type, StreamingContext, ISerializationSurrogate) | 
		已过时.
	 将代理项添加到已检查代理项的列表中。(继承自 SurrogateSelector) | 
| ChainSelector(ISurrogateSelector) | 
		已过时.
	 在代理项列表中添加指定的 ISurrogateSelector,它可以处理特定的对象类型。(继承自 SurrogateSelector) | 
| Equals(Object) | 
		已过时.
	 确定指定对象是否等于当前对象。(继承自 Object) | 
| GetHashCode() | 
		已过时.
	 作为默认哈希函数。(继承自 Object) | 
| GetNextSelector() | 
		已过时.
	 返回选择器链上的下一个选择器。(继承自 SurrogateSelector) | 
| GetSurrogate(Type, StreamingContext, ISurrogateSelector) | 
				已过时.
			 从指定序列化上下文的指定代理项选择器开始,查找表示指定类型的代理项。 | 
| GetType() | 
		已过时.
	 获取当前实例的 Type。(继承自 Object) | 
| MemberwiseClone() | 
		已过时.
	 创建当前 Object 的浅表副本。(继承自 Object) | 
| RemoveSurrogate(Type, StreamingContext) | 
		已过时.
	 移除与给定类型关联的代理项。(继承自 SurrogateSelector) | 
| ToString() | 
		已过时.
	 返回表示当前对象的字符串。(继承自 Object) |