SyncSchemaColumn Class

Represents the schema of a column in a SyncSchemaTable.

Inheritance Hierarchy

System.Object
  Microsoft.Synchronization.Data.SyncSchemaColumn

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

Syntax

'Declaration
Public Class SyncSchemaColumn
'Usage
Dim instance As SyncSchemaColumn
public class SyncSchemaColumn
public ref class SyncSchemaColumn
type SyncSchemaColumn =  class end
public class SyncSchemaColumn

The SyncSchemaColumn type exposes the following members.

Properties

  Name Description
Public property AllowNull Gets or sets a value that indicates whether null values are allowed in this column.
Public property AutoIncrement Gets or sets a value indicating whether the column automatically increments its value when new rows are inserted into the table.
Public property AutoIncrementSeed Gets or sets the starting value for a column that has its AutoIncrement property set to true.
Public property AutoIncrementStep Gets or sets the increment for a column that has its AutoIncrement property set to true.
Public property Collation Gets or sets the collation for the column. Collation is a set of rules that determines how data is compared, ordered, and presented.
Public property ColumnName Gets or sets the name of the column.
Public property DataType Gets or sets a Type object that represents the type of data stored in the column.
Public property DefaultValue Gets or sets the default value for the column when new rows are created.
Public property MaxLength Gets or sets the maximum length of a text column.
Public property NumericPrecision Gets of sets the numeric precision for the column if the data type is Decimal.
Public property NumericScale Gets of sets the numeric scale for the column when the data type is Decimal.
Public property ProviderDataType Gets or sets the SQL Server data type of the column.
Public property RowGuid Gets or sets whether the column is a Guid.
Public property Unique Gets or sets whether the values in each row of the column must be unique.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Remarks

The column is the fundamental building block for creating the schema of a table. Build the schema by adding one or more column objects to the column list. Each column has a DataType property that determines the kind of data that the column contains. For example, you can restrict the data type to integers, or strings, or decimals in the form of .NET Framework types. Each column also has a ProviderDataType property that determines the SQL Server data type of the column. A column object always depends on the table that contains this column.

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.

See Also

Reference

Microsoft.Synchronization.Data Namespace