SPViewCollection class
表示SPView物件的集合。
Inheritance hierarchy
System.Object
Microsoft.SharePoint.Administration.SPAutoSerializingObject
Microsoft.SharePoint.SPBaseCollection
Microsoft.SharePoint.SPViewCollection
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Class SPViewCollection _
Inherits SPBaseCollection
'用途
Dim instance As SPViewCollection
public class SPViewCollection : SPBaseCollection
備註
使用的SPList或SPView類別的Views屬性來傳回集合的清單檢視或父集合檢視的檢視。若要從檢視集合傳回單一檢視中使用索引子。例如,如果集合指派給一個名為collViews變數,在 C# 的collViews[index]或collViews(index) Visual Basic,其中index是集合的檢視名稱中檢視這個引數或 GUID 中檢視使用。
Thread safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.