SPMobileUtility.GetMobileViewFromList method (SPList)
取得指定清單的預設行動檢視。
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Shared Function GetMobileViewFromList ( _
list As SPList _
) As SPView
'用途
Dim list As SPList
Dim returnValue As SPView
returnValue = SPMobileUtility.GetMobileViewFromList(list)
public static SPView GetMobileViewFromList(
SPList list
)
參數
list
Type: Microsoft.SharePoint.SPListSharePoint Foundation清單。
傳回值
Type: Microsoft.SharePoint.SPView
預設行動檢視或第一個行動的檢視或a null reference (Nothing in Visual Basic)的內容。
備註
如果應該排除行動的預設檢視,則會傳回第一個行動檢視 (SPMobileUtility.IsViewExcluded(SPView, SPContext)會傳回true)。如果沒有清單檢視行動,會傳回a null reference (Nothing in Visual Basic) 。