Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets or sets a Boolean value that determines whether users must enter a value for the field on New and Edit forms.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
'Declaration
Public Property Required As Boolean
Get
Set
'Usage
Dim instance As SPField
Dim value As Boolean
value = instance.Required
instance.Required = value
public bool Required { get; set; }
Type: System.Boolean
true if the field requires values; otherwise, false.
Exception | Condition |
---|---|
NotSupportedException | The list that the field belongs to is an external list. |
Please sign in to use this experience.
Sign in