共用方式為


SPViewCollection members

Include protected members
Include inherited members

表示SPView物件的集合。

The SPViewCollection type exposes the following members.

Properties

  Name Description
Public property Count 取得集合中的檢視的數目。 (Overrides SPBaseCollection.Count.)
Public property Item[Guid] 從集合中取得具有指定之 GUID 的檢視物件。
Public property Item[Int32] 取得集合中指定之索引處的檢視物件。
Public property Item[String] 從集合中取得具有指定名稱的檢視物件。
Public property List 取得父清單檢視集合。
Public property SchemaXml 取得集合中的完整檢視結構描述。

Top

Methods

  Name Description
Public method Add(String, StringCollection, String, UInt32, Boolean, Boolean) 建立具有指定的名稱、 檢視欄位、 查詢、 資料列限制和布林值,以指定檢視顯示項目] 頁面的頁面以及它是否為預設檢視集合中的檢視。
Public method Add(String, StringCollection, String, UInt32, Boolean, Boolean, SPViewCollection.SPViewType, Boolean) 使用指定的名稱、 檢視欄位、 查詢、 資料列限制、 指定的檢視顯示項目] 頁面的頁面以及它是否為預設檢視,檢視型別和布林值,指定檢視是否為個人或公用的布林值集合中建立檢視。
Public method Add(String, StringCollection, String, String, String, UInt32, Boolean, Boolean, SPViewCollection.SPViewType, Boolean) 建立具有指定的名稱、 檢視欄位、 查詢、 聯結、 預計的欄位、 列數限制、 檢視類型,以及指定檢視是否要顯示項目頁面,是否預設檢視,以及檢視是個人還是公用的布林值集合中的檢視。
Public method Delete 從集合中刪除指定的 GUID 與檢視。
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetEnumerator 取得列舉值來逐一查看集合。 (Inherited from SPBaseCollection.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method GetTypedEnumerator<T> 傳回逐一查看集合的型別安全列舉值。 (Inherited from SPBaseCollection.)
Public method GetViewByBaseViewId 傳回的第一個檢視中的 BaseViewID 符合 baseViewId 的 SPViewCollection。
Protected method MemberwiseClone (Inherited from Object.)
Public methodStatic member SPViewTypeToString 傳回指定的檢視類型的字串表示。
Public methodStatic member StringToSPViewType 傳回指定之字串的檢視類型。
Public method ToString (Inherited from Object.)

Top

Explicit interface implementations

  Name Description
Explicit interface implemetationPrivate method ICollection.CopyTo 陣列,指定的陣列索引處開始複製集合的項目。 (Inherited from SPBaseCollection.)
Explicit interface implemetationPrivate property ICollection.IsSynchronized 取得布林值,這個值,指出對集合的存取是否同步處理或安全執行緒。 (Inherited from SPBaseCollection.)
Explicit interface implemetationPrivate property ICollection.SyncRoot 取得用於同步化存取集合的物件。 (Inherited from SPBaseCollection.)

Top

請參閱

參照

SPViewCollection class

Microsoft.SharePoint namespace