TrackingProfileSerializer Class
Provides methods to serialize and deserialize tracking profiles into and from XML documents by using the tracking profile XML schema definition (XSD).
Assembly: System.Workflow.Runtime (in System.Workflow.Runtime.dll)
| Name | Description | |
|---|---|---|
![]() | TrackingProfileSerializer() | Initializes a new instance of the TrackingProfileSerializer class. |
| Name | Description | |
|---|---|---|
![]() | Schema | Gets the tracking profile XML schema definition (XSD). |
| Name | Description | |
|---|---|---|
![]() | Deserialize(TextReader^) | Deserializes the XML document that is contained in the text reader by using the tracking profile XML Schema definition (XSD). |
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | MemberwiseClone() | |
![]() | Serialize(TextWriter^, TrackingProfile^) | Serializes the tracking profile into an XML document by using the tracking profile XML Schema definition (XSD). |
![]() | 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. |
The TrackingProfileSerializer uses the tracking profile XSD contained in TrackingProfileSerializer::Schema to serialize TrackingProfile objects into valid XML documents and to deserialize valid XML documents into TrackingProfile objects. The TrackingProfileSerializer performs validation during both serialization and deserialization and, if necessary, throws an appropriate exception.
An XML document provides a convenient format in which to store a tracking profile. It also provides a non-programmatic way of authoring tracking profiles. The out-of-box SqlTrackingService uses a TrackingProfileSerializer to serialize and deserialize the tracking profiles that are stored in its database.
The following code example demonstrates how you can create a TrackingProfileSerializer using the TrackingProfileSerializer constructor to serialize a TrackingProfile. The code also uses the Serialize method.
This code example is part of the Query using SQLTrackingService SDK sample from the Program.cs file. For more information, see Query Using SQLTrackingService.
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.
System.Workflow.Runtime.Tracking Namespace
Query Using SQLTrackingService



