Share via


DbSyncColumnDescription.Type Property

Gets or sets the data type of the column.

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

Syntax

'Declaration
Public Property Type As String
    Get
    Set
'Usage
Dim instance As DbSyncColumnDescription
Dim value As String

value = instance.Type

instance.Type = value
public string Type { get; set; }
public:
property String^ Type {
    String^ get ();
    void set (String^ value);
}
member Type : string with get, set
function get Type () : String
function set Type (value : String)

Property Value

Type: System.String
The data type of the column.

Exceptions

Exception Condition
ArgumentNullException

value is a null reference (Nothing in Visual Basic).

ArgumentException

value is empty.

Remarks

The properties Type and Size are used together to specify variable-length data types. For example, in SQL Server a column of type varchar(256) is represented by setting Type = "varchar" and Size = "256".

See Also

Reference

DbSyncColumnDescription Class

Microsoft.Synchronization.Data Namespace