DataTableSurrogate Class
Represents a surrogate of a DataTable object, which Sync Framework uses during custom binary serialization.
Inheritance Hierarchy
System.Object
Microsoft.Synchronization.Data.DataTableSurrogate
Namespace: Microsoft.Synchronization.Data
Assembly: Microsoft.Synchronization.Data (in Microsoft.Synchronization.Data.dll)
Syntax
'Declaration
<SerializableAttribute> _
Public Class DataTableSurrogate _
Implements IDisposable
'Usage
Dim instance As DataTableSurrogate
[SerializableAttribute]
public class DataTableSurrogate : IDisposable
[SerializableAttribute]
public ref class DataTableSurrogate : IDisposable
[<SerializableAttribute>]
type DataTableSurrogate =
class
interface IDisposable
end
public class DataTableSurrogate implements IDisposable
The DataTableSurrogate type exposes the following members.
Constructors
Name | Description | |
---|---|---|
DataTableSurrogate | Initializes a new instance of the DataTableSurrogate class. |
Top
Properties
Name | Description | |
---|---|---|
Locale | Gets or sets the locale information used to compare strings within the table. | |
MinimumCapacity | Gets or sets the initial starting size for this table. | |
RowStates | Gets or sets an array that represents the state of each row in the table. | |
TableName | Gets or sets the name of the table that the DataTableSurrogate object represents. |
Top
Methods
Name | Description | |
---|---|---|
Dispose() | Releases all resources used by the DataTableSurrogate. | |
Dispose(Boolean) | Releases the unmanaged resources used by the DataTableSurrogate and optionally releases the managed resources. | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetDataColumnSurrogates | Gets an array of DataColumnSurrogate objects that comprise the table that is represented by the DataTableSurrogate object. | |
GetHashCode | (Inherited from Object.) | |
GetRecords | Gets an array of objects that represent the columns and rows of data in the DataTableSurrogate object. | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
ReadDataIntoDataTable | Copies the table schema from a DataTableSurrogate object into a DataTable object. | |
ReadSchemaIntoDataTable | Copies the table data from a DataTableSurrogate object into a DataTable object. | |
ToString | (Inherited from Object.) |
Top
Remarks
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.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.