Partilhar 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)
Available in Sandboxed Solutions: No

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