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.StringA 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.