Compartilhar via


OWSDateField.Required property

NOTE: This API is now obsolete.

Gets or sets a Boolean value that specifies whether the date field must contain a value.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<ObsoleteAttribute("This class has been deprecated.")> _
Public Property Required As Boolean
    Get
    Set
'Usage
Dim instance As OWSDateField
Dim value As Boolean

value = instance.Required

instance.Required = value
[ObsoleteAttribute("This class has been deprecated.")]
public bool Required { get; set; }

Property value

Type: System.Boolean
true if the date field requires a value.

See also

Reference

OWSDateField class

OWSDateField members

Microsoft.SharePoint.WebControls namespace