Partilhar via


SPViewCollection.StringToSPViewType Method

Returns a view type for the specified string.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

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