共用方式為


SPViewCollection.StringToSPViewType method

傳回指定之字串的檢視類型。

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

Syntax

'宣告
Public Shared Function StringToSPViewType ( _
    type As String _
) As SPViewCollection.SPViewType
'用途
Dim type As String
Dim returnValue As SPViewCollection.SPViewType

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

參數

  • type
    Type: System.String

    字串,包含要轉換成檢視型別物件的檢視類型的名稱。

傳回值

Type: Microsoft.SharePoint.SPViewCollection.SPViewType
指定的檢視類型的列舉型別值。

請參閱

參照

SPViewCollection class

SPViewCollection members

Microsoft.SharePoint namespace