SPUtility.GetViewType Method

Retrieves one of the calendar parameters from the request context.

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

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedExternalType)> _
Public Shared Function GetViewType ( _
    request As HttpRequest _
) As String
'Usage
Dim request As HttpRequest
Dim returnValue As String

returnValue = SPUtility.GetViewType(request)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedExternalType)]
public static string GetViewType(
    HttpRequest request
)

Parameters

  • request
    Type: System.Web.HttpRequest

    The HttpRequest object that contains the HTTP values that were sent by a client during a Web request.

Return Value

Type: System.String
An SPWeb object that represents a SharePoint Web site.

See Also

Reference

SPUtility Class

SPUtility Members

Microsoft.SharePoint.Utilities Namespace