OWSDateField Class
The OWSDateField class represents a server control for a field that contains date and time values.
System.Object
System.Web.UI.Control
Microsoft.SharePoint.WebControls.SPControl
Microsoft.SharePoint.WebControls.OWSControl
Microsoft.SharePoint.WebControls.OWSDateField
Public Constructors
The following table shows the public constructors of the OWSDateField class and a brief description of each.
Name | Description |
---|---|
OWSDateField | Initializes a new instance of the OWSDateField class. |
Public Methods
The following table shows the public methods of the OWSDateField class and a brief description of each.
Name | Description |
---|---|
LoadPostData | Processes post back data for the server control. |
RaisePostDataChangedEvent | Signals the server control to notify Microsoft Windows SharePoint Services that the state of the control has changed. |
Protected Methods
The following table shows the protected methods of the OWSDateField class and a brief description of each.
Name | Description |
---|---|
Render | Sends the content of the control to the specified HtmlTextWriter object, which writes the content that is rendered on the client. |
Public Properties
The following table shows the public properties of the OWSDateField class, the data type of each property, and a brief description of each.
Name | Data Type | Description |
---|---|---|
DateOnly | Boolean | Gets or sets a Boolean value that specifies whether the date field contains only date values and not time values. |
DisplayName | String | Gets or sets the display name for the date field. |
HideDescription | Boolean | Gets or sets a Boolean value that specifies whether the description of the date field is hidden. |
Required | Boolean | Gets or sets a Boolean value that specifies whether the date field must contain a value. |
Value | String | Gets or sets the value contained in the date field. |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.
Requirements
Namespace: Microsoft.SharePoint.WebControls
Platforms: Microsoft Windows Server 2003
Assembly: Windows SharePoint Services (in Microsoft.SharePoint.dll)
Security: Code Access Security