MaxLength 属性
获取或设置文本列的最大长度。
命名空间: Microsoft.Synchronization.Data
程序集: Microsoft.Synchronization.Data(在 Microsoft.Synchronization.Data.dll 中)
语法
声明
Public Property MaxLength As Integer
Get
Set
用法
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)
属性值
类型:System. . :: . .Int32
如果已设定,则为文本列的最大长度;否则为 -1。
异常
异常 | 条件 |
---|---|
ArgumentNullException | value 为 null Nothing nullptr unit null 引用(在 Visual Basic 中为 Nothing) 。 |