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
Assemblies: Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll); Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
Syntax
'Declaration
<RemoteAttribute> _
Public Property MaxLength As Integer
Get
Set
'Usage
Dim instance As FieldText
Dim value As Integer
value = instance.MaxLength
instance.MaxLength = value
[RemoteAttribute]
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.