Share via


SyncSchemaColumn.MaxLength Property

Gets or sets the maximum length of a text column.

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

Syntax

'Declaration
Public Property MaxLength As Integer
    Get
    Set
'Usage
Dim instance As SyncSchemaColumn
Dim value As Integer

value = instance.MaxLength

instance.MaxLength = value
public int MaxLength { get; set; }
public:
property int MaxLength {
    int get ();
    void set (int value);
}
member MaxLength : int with get, set
function get MaxLength () : int
function set MaxLength (value : int)

Property Value

Type: System.Int32
The maximum length of the text column if it is set; otherwise, -1.

Exceptions

Exception Condition
ArgumentNullException

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

See Also

Reference

SyncSchemaColumn Class

Microsoft.Synchronization.Data Namespace