DateTimeControl 类
代表 DateTime 控件。
继承层次结构
System.Object
System.Web.UI.Control
Microsoft.SharePoint.WebControls.SPCompositeControl
Microsoft.SharePoint.WebControls.DateTimeControl
命名空间: Microsoft.SharePoint.WebControls
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public Class DateTimeControl _
Inherits SPCompositeControl _
Implements IValidator, IPostBackDataHandler, IDesignerEventAccessor
用法
Dim instance As DateTimeControl
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public class DateTimeControl : SPCompositeControl,
IValidator, IPostBackDataHandler, IDesignerEventAccessor
备注
重要信息 |
---|
使DateTimeControl才能正确呈现, EnableViewState属性必须设置为true。 |
线程安全性
该类型的任何公共 静态 (已共享 在 Visual Basic 中) 成员都是线程安全的。不保证任何实例成员都是线程安全的。