ActivitySurrogateSelector ActivitySurrogateSelector ActivitySurrogateSelector ActivitySurrogateSelector Class

Definition

Warning

This API is now obsolete.

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
[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
Public NotInheritable Class ActivitySurrogateSelector
Inherits SurrogateSelector
Inheritance
ActivitySurrogateSelectorActivitySurrogateSelectorActivitySurrogateSelectorActivitySurrogateSelector
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() ActivitySurrogateSelector() ActivitySurrogateSelector() ActivitySurrogateSelector()

Initializes a new instance of the ActivitySurrogateSelector class.

Properties

Default Default Default Default

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

Methods

AddSurrogate(Type, StreamingContext, ISerializationSurrogate) AddSurrogate(Type, StreamingContext, ISerializationSurrogate) AddSurrogate(Type, StreamingContext, ISerializationSurrogate) AddSurrogate(Type, StreamingContext, ISerializationSurrogate)

Adds a surrogate to the list of checked surrogates.

(Inherited from SurrogateSelector)
ChainSelector(ISurrogateSelector) ChainSelector(ISurrogateSelector) ChainSelector(ISurrogateSelector) ChainSelector(ISurrogateSelector)

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

(Inherited from SurrogateSelector)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetNextSelector() GetNextSelector() GetNextSelector() GetNextSelector()

Returns the next selector on the chain of selectors.

(Inherited from SurrogateSelector)
GetSurrogate(Type, StreamingContext, ISurrogateSelector) GetSurrogate(Type, StreamingContext, ISurrogateSelector) GetSurrogate(Type, StreamingContext, ISurrogateSelector) GetSurrogate(Type, StreamingContext, ISurrogateSelector)

Finds the surrogate that represents the specified type, starting with the specified surrogate selector for the specified serialization context.

GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
RemoveSurrogate(Type, StreamingContext) RemoveSurrogate(Type, StreamingContext) RemoveSurrogate(Type, StreamingContext) RemoveSurrogate(Type, StreamingContext)

Removes the surrogate associated with a given type.

(Inherited from SurrogateSelector)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to