DataTableSurrogate Class

Represents a surrogate of a DataTable object, which Sync Framework uses during custom binary serialization.


Namespace:  Microsoft.Synchronization.Data
Assembly:  Microsoft.Synchronization.Data (in Microsoft.Synchronization.Data.dll)

public class DataTableSurrogate : IDisposable

The DataTableSurrogate type exposes the following members.

Public methodDataTableSurrogateInitializes a new instance of the DataTableSurrogate class.

Public propertyLocaleGets or sets the locale information used to compare strings within the table.
Public propertyMinimumCapacityGets or sets the initial starting size for this table.
Public propertyRowStatesGets or sets an array that represents the state of each row in the table.
Public propertyTableNameGets or sets the name of the table that the DataTableSurrogate object represents.

Public methodDispose()Releases all resources used by the DataTableSurrogate.
Protected methodDispose(Boolean)Releases the unmanaged resources used by the DataTableSurrogate and optionally releases the managed resources.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetDataColumnSurrogatesGets an array of DataColumnSurrogate objects that comprise the table that is represented by the DataTableSurrogate object.
Public methodGetHashCode (Inherited from Object.)
Public methodGetRecordsGets an array of objects that represent the columns and rows of data in the DataTableSurrogate object.
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodReadDataIntoDataTableCopies the table schema from a DataTableSurrogate object into a DataTable object.
Public methodReadSchemaIntoDataTableCopies the table data from a DataTableSurrogate object into a DataTable object.
Public methodToString (Inherited from Object.)

This surrogate does not retain all of the properties of the object on which it is based. The only properties it retains are those that are publicly exposed. For example, this surrogate does not retain the original values for rows that were updated or deleted.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.