次の方法で共有


SPMobileUtility.GetMobileViewFromList method (SPList, SPContext)

Gets the default mobile view of the specified list for the specified context.

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

Syntax

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

returnValue = SPMobileUtility.GetMobileViewFromList(list, _
    context)
public static SPView GetMobileViewFromList(
    SPList list,
    SPContext context
)

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.

Use this override to get the default mobile view for a context other than the current one.

See also

Reference

SPMobileUtility class

SPMobileUtility members

GetMobileViewFromList overload

Microsoft.SharePoint.Utilities namespace