Share via


SPViewCollection.StringToSPViewType method

Returns a view type for the specified string.

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

Syntax

'Declaration
Public Shared Function StringToSPViewType ( _
    type As String _
) As SPViewCollection.SPViewType
'Usage
Dim type As String
Dim returnValue As SPViewCollection.SPViewType

returnValue = SPViewCollection.StringToSPViewType(type)
public static SPViewCollection.SPViewType StringToSPViewType(
    string type
)

Parameters

  • type
    Type: System.String

    A string that contains the name of a view type to convert to a view type object.

Return value

Type: Microsoft.SharePoint.SPViewCollection.SPViewType
An enumeration value that specifies the type of view.

See also

Reference

SPViewCollection class

SPViewCollection members

Microsoft.SharePoint namespace