Share via


SPMobileUtility.IsViewExcluded method

Returns a value that indicates whether the specified view, in the specified context, is not allowed on mobile devices.

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

Syntax

'Declaration
Public Shared Function IsViewExcluded ( _
    view As SPView, _
    context As SPContext _
) As Boolean
'Usage
Dim view As SPView
Dim context As SPContext
Dim returnValue As Boolean

returnValue = SPMobileUtility.IsViewExcluded(view, _
    context)
public static bool IsViewExcluded(
    SPView view,
    SPContext context
)

Parameters

Return value

Type: System.Boolean
true, if the view is not allowed on mobile devices; otherwise false.

Remarks

A view may be excluded, for example, if it is not designated as a mobile view or if it is designated to be hidden.

See also

Reference

SPMobileUtility class

SPMobileUtility members

Microsoft.SharePoint.Utilities namespace