Share via


SPMobileContext.View property

Gets the current mobile view of the list that contains the current list item.

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

Syntax

'Declaration
Public Overridable Property View As SPView
    Get
    Set
'Usage
Dim instance As SPMobileContext
Dim value As SPView

value = instance.View

instance.View = value
public virtual SPView View { get; set; }

Property value

Type: Microsoft.SharePoint.SPView
An SPView that represents a valid mobile view of the list.

Remarks

The default implementation tries to obtain the view from ViewId. It that is not possible, it returns the current mobile view of the parent list.

See also

Reference

SPMobileContext class

SPMobileContext members

Microsoft.SharePoint namespace