SPMobileComponent.IsForm 属性
获取一个值,该值指示页面是否为窗体,而不是列表视图页或主页。
命名空间: Microsoft.SharePoint.Mobile.WebControls
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Overridable ReadOnly Property IsForm As Boolean
Get
用法
Dim instance As SPMobileComponent
Dim value As Boolean
value = instance.IsForm
public virtual bool IsForm { get; }
属性值
类型:System.Boolean
true如果页面是表单模板。否则为false。
备注
默认实现返回MobileContext属性的IsForm属性。使用,而不是Microsoft.SharePoint.MobileControls.SPMobileComponent.MobileContext.IsFormIsForm简化您的代码。不会替代IsForm或创建一个则它将获取一个值Microsoft.SharePoint.Mobile.WebControls.SPMobileComponent.MobileContext.IsForm的值不一致的机会。