ActivitySurrogateSelector 类

定义

注意

The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*

选择可用于序列化 Activity 的代理项。Selects the surrogate that can be used to serialize an Activity. 此类不能被继承。This class cannot be inherited.

public ref class ActivitySurrogateSelector sealed : System::Runtime::Serialization::SurrogateSelector
public 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.SurrogateSelector
type 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 SurrogateSelector
Public NotInheritable Class ActivitySurrogateSelector
Inherits SurrogateSelector
继承
ActivitySurrogateSelector
属性

注解

备注

本材料讨论的类型和命名空间已废弃不用。This material discusses types and namespaces that are obsolete. 有关详细信息,请参阅 Windows Workflow Foundation 4.5 中弃用的类型For more information, see Deprecated Types in Windows Workflow Foundation 4.5.

序列化代理项提供一种对象,该对象可以处理不同对象的序列化需求,并且可以在必要时转换序列化数据。A serialization surrogate gives you an object that can handle the serialization requirements of a different object and, if necessary, can transform the serialized data.

构造函数

ActivitySurrogateSelector()

初始化 ActivitySurrogateSelector 类的新实例。Initializes a new instance of the ActivitySurrogateSelector class.

属性

Default

获取默认的 ActivitySurrogateSelectorGets the default ActivitySurrogateSelector. 此属性为只读。This property is read-only.

方法

AddSurrogate(Type, StreamingContext, ISerializationSurrogate)

将代理项添加到已检查代理项的列表中。Adds a surrogate to the list of checked surrogates.

(继承自 SurrogateSelector)
ChainSelector(ISurrogateSelector)

在代理项列表中添加指定的 ISurrogateSelector,它可以处理特定的对象类型。Adds the specified ISurrogateSelector that can handle a particular object type to the list of surrogates.

(继承自 SurrogateSelector)
Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetNextSelector()

返回选择器链上的下一个选择器。Returns the next selector on the chain of selectors.

(继承自 SurrogateSelector)
GetSurrogate(Type, StreamingContext, ISurrogateSelector)

从指定序列化上下文的指定代理项选择器开始,查找表示指定类型的代理项。Finds the surrogate that represents the specified type, starting with the specified surrogate selector for the specified serialization context.

GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
RemoveSurrogate(Type, StreamingContext)

移除与给定类型关联的代理项。Removes the surrogate associated with a given type.

(继承自 SurrogateSelector)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于