SPMobileUtility.GetMobileViewFromList Method (SPList)

Gets the default mobile view of the specified list.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Shared Function GetMobileViewFromList ( _
    list As SPList _
) As SPView
'Usage
Dim list As SPList
Dim returnValue As SPView

returnValue = SPMobileUtility.GetMobileViewFromList(list)
public static SPView GetMobileViewFromList(
    SPList list
)

Parameters

Return Value

Type: Microsoft.SharePoint.SPView
The default mobile view or the first mobile view or a null reference (Nothing in Visual Basic).

Remarks

The first mobile view is returned if the mobile default view should be excluded (SPMobileUtility.IsViewExcluded(SPView, SPContext) returns true). If there are no mobile views for the list, a null reference (Nothing in Visual Basic) is returned.

See Also

Reference

SPMobileUtility Class

SPMobileUtility Members

GetMobileViewFromList Overload

Microsoft.SharePoint.Utilities Namespace