ActivitySurrogateSelector Class
Selects the surrogate that can be used to serialize an Activity. This class cannot be inherited.
Assembly: System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)
System.Runtime.Serialization::SurrogateSelector
System.Workflow.ComponentModel.Serialization::ActivitySurrogateSelector
| Name | Description | |
|---|---|---|
![]() | ActivitySurrogateSelector() | Initializes a new instance of the ActivitySurrogateSelector class. |
| Name | Description | |
|---|---|---|
![]() ![]() | Default | Gets the default ActivitySurrogateSelector. This property is read-only. |
| Name | Description | |
|---|---|---|
![]() | 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.(Overrides SurrogateSelector::GetSurrogate(Type^, StreamingContext, ISurrogateSelector^%).) |
![]() | GetType() | |
![]() | 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.) |
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.
Available since 3.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.



