Field.Required Property
Gets or sets a value that specifies whether the field requires a value.
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 Required As Boolean
Get
Set
'Usage
Dim instance As Field
Dim value As Boolean
value = instance.Required
instance.Required = value
[RemoteAttribute]
public bool Required { get; set; }
Property Value
Type: System.Boolean
Returns Booleantrue if field requires a value otherwise returns false. The default value is
Exceptions
Exception | Condition |
---|---|
[System.NotSupportedException] | Value is set to true, and the list is an external list. Error code: -1. |