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