Rediger

Del via


ActivitySurrogateSelector Class

Definition

Caution

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

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
Inheritance
ActivitySurrogateSelector
Attributes

Remarks

Note

This material discusses types and namespaces that are obsolete. 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.

Constructors

ActivitySurrogateSelector()

Initializes a new instance of the ActivitySurrogateSelector class.

Properties

Default

Gets the default ActivitySurrogateSelector. This property is read-only.

Methods

AddSurrogate(Type, StreamingContext, ISerializationSurrogate)

Adds a surrogate to the list of checked surrogates.

(Inherited from SurrogateSelector)
ChainSelector(ISurrogateSelector)

Adds the specified ISurrogateSelector that can handle a particular object type to the list of surrogates.

(Inherited from SurrogateSelector)
Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetNextSelector()

Returns the next selector on the chain of selectors.

(Inherited from 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()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
RemoveSurrogate(Type, StreamingContext)

Removes the surrogate associated with a given type.

(Inherited from SurrogateSelector)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to