Share via


SPMobileUtility.GetMobileViewFromList method (SPList)

Gets the default mobile view of the specified list.

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

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