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