FieldText.MaxLength property
Gets or sets a value that specifies the maximum number of characters allowed in the value of the field.
Namespace: Microsoft.SharePoint.Client
Assembly: Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
Syntax
'Declaration
Public Property MaxLength As Integer
Get
Set
'Usage
Dim instance As FieldText
Dim value As Integer
value = instance.MaxLength
instance.MaxLength = value
public int MaxLength { get; set; }
Property value
Type: System.Int32
Returns a Int32 instance representing the maximum number of characters allowed in the value of the field.
Exceptions
Exception | Condition |
---|---|
[Microsoft.SharePoint.SPException] | The server does not allow properties of the field to be changed. Error code: -2146232832. |
Remarks
Its value must be equal to or greater than 1. Its value must be equal to or less than 255.