共用方式為


SPMobileComponent.MobileContext Property

Gets an object holding information about the context that is especially relevant to mobile computing, such as the markup language of the mobile device.

Namespace:  Microsoft.SharePoint.MobileControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Protected Overridable ReadOnly Property MobileContext As SPMobileContext
    Get
'Usage
Dim value As SPMobileContext

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

Property Value

Type: Microsoft.SharePoint.SPMobileContext
An SPMobileContext object holding mobile context information.

Remarks

The default implementation returns the value of the MobileContext property of the SharePointContext property. Use SPMobileComponent.MobileContext instead of Microsoft.SharePoint.MobileControls.SPMobileComponent.SharePointContext.MobileContext to simplify your code. Do not override SPMobileComponent.MobileContext or you create a chance that its properties will get values inconsistent with those of Microsoft.SharePoint.MobileControls.SPMobileComponent.SharePointContext.MobileContext.

See Also

Reference

SPMobileComponent Class

SPMobileComponent Members

Microsoft.SharePoint.MobileControls Namespace