SPMobileComponent.MobileContext 属性

获取一个对象,该对象包含有关与移动计算,如移动设备的标记语言密切相关的上下文信息。

命名空间:  Microsoft.SharePoint.Mobile.WebControls
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Protected Overridable ReadOnly Property MobileContext As SPMobileContext
    Get
用法
Dim value As SPMobileContext

value = Me.MobileContext
protected virtual SPMobileContext MobileContext { get; }

属性值

类型:Microsoft.SharePoint.SPMobileContext
保存移动上下文信息SPMobileContext对象。

备注

默认实现返回SharePointContext属性MobileContext属性的值。使用,而不是Microsoft.SharePoint.Mobile.WebControls.SPMobileComponent.SharePointContext.MobileContextSPMobileComponent.MobileContext简化您的代码。不会替代SPMobileComponent.MobileContext或创建一个其属性将获取的值与Microsoft.SharePoint.Mobile.WebControls.SPMobileComponent.SharePointContext.MobileContext不一致的机会。

另请参阅

引用

SPMobileComponent 类

SPMobileComponent 成员

Microsoft.SharePoint.Mobile.WebControls 命名空间