Partager via


Field.Required - Propriété

Gets or sets a value that specifies whether the field requires a value.

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 Required As Boolean
    Get
    Set
'Utilisation
Dim instance As Field
Dim value As Boolean

value = instance.Required

instance.Required = value
public bool Required { get; set; }

Valeur de propriété

Type : System.Boolean
Returns Booleantrue if the field requires a value; otherwise, returns false.

Exceptions

Exception Condition
[System.NotSupportedException]

Value is set to true, and the list is an external list. Error code: -1.

Remarques

If the field requires a value, this value must be set to true. Otherwise, it must be set to false.

Voir aussi

Référence

Field classe

Field - Membres

Microsoft.SharePoint.Client - Espace de noms