SPMobileComponent.ControlMode 属性
获取指定控件的模式是否新窗体、 显示表单中,或编辑窗体的对象。
命名空间: Microsoft.SharePoint.Mobile.WebControls
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Overridable ReadOnly Property ControlMode As SPControlMode
Get
用法
Dim instance As SPMobileComponent
Dim value As SPControlMode
value = instance.ControlMode
public virtual SPControlMode ControlMode { get; }
属性值
类型:Microsoft.SharePoint.WebControls.SPControlMode
指定控件的模式是否为新窗体、 显示窗体,或编辑表单SPControlMode对象。默认值为Display。
备注
默认实现MobileContext属性中返回的对象的ControlMode属性相同的值。使用,而不是SPMobileComponent.MobileContext中保留的对象的**SPMobileContextControlMode()属性SPMobileComponent.ControlMode简化您的代码。不会替代ControlMode或创建有机会在其值将MobileContextControlMode()**的值不一致。