Partager via


FieldText.MaxLength - Propriété

Gets or sets a value that specifies the maximum number of characters allowed in the value of the field.

Espace de noms :  Microsoft.SharePoint.Client
Assemblys :   Microsoft.SharePoint.Client.Silverlight (dans Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client.Phone (dans Microsoft.SharePoint.Client.Phone.dll)  Microsoft.SharePoint.Client (dans Microsoft.SharePoint.Client.dll)

Syntaxe

'Déclaration
Public Property MaxLength As Integer
    Get
    Set
'Utilisation
Dim instance As FieldText
Dim value As Integer

value = instance.MaxLength

instance.MaxLength = value
public int MaxLength { get; set; }

Valeur de propriété

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.

Remarques

Its value must be equal to or greater than 1. Its value must be equal to or less than 255.

Voir aussi

Référence

FieldText classe

FieldText - Membres

Microsoft.SharePoint.Client - Espace de noms