Partilhar via


SPViewCollection Members

Include Protected Members
Include Inherited Members

Represents a collection of SPView objects.

The SPViewCollection type exposes the following members.

Properties

  Name Description
Public property Count Gets the number of views in the collection. (Overrides SPBaseCollection.Count.)
Public property Item[Guid] Gets the view object with the specified GUID from the collection.
Public property Item[Int32] Gets the view object at the specified index in the collection.
Public property Item[String] Gets the view object with the specified name from the collection.
Public property List Gets the parent list for the view collection.
Public property SchemaXml Gets the complete view schemas for the collection.
Public property UpgradedPersistedProperties (Inherited from SPAutoSerializingObject.)

Top

Methods

  Name Description
Public method Add(String, StringCollection, String, UInt32, Boolean, Boolean) Creates a view in the collection with the specified name, view fields, query, row limit, and Boolean values that specify whether the view displays items page by page and whether it is the default view.
Public method Add(String, StringCollection, String, UInt32, Boolean, Boolean, SPViewCollection.SPViewType, Boolean) Creates a view in the collection with the specified name, view fields, query, row limit, Boolean values specifying whether the view displays items page by page and whether it is the default view, the view type, and a Boolean value specifying whether the view is personal or public.
Public method Add(String, StringCollection, String, String, String, UInt32, Boolean, Boolean, SPViewCollection.SPViewType, Boolean) Creates a view in the collection with the specified name, view fields, query, joins, projected fields, row limit, view type, and Boolean values that specify whether the view displays items page by page, whether it is the default view, and whether the view is personal or public.
Public method Delete Deletes the view with the specified GUID from the collection.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetEnumerator Gets an enumerator to iterate through the collection. (Inherited from SPBaseCollection.)
Public method GetHashCode (Inherited from Object.)
Public method GetObjectData (Inherited from SPAutoSerializingObject.)
Public method GetType (Inherited from Object.)
Public method GetTypedEnumerator<T> Returns a type-safe enumerator to iterate through the collection. (Inherited from SPBaseCollection.)
Protected method MemberwiseClone (Inherited from Object.)
Protected method OnDeserialization (Inherited from SPAutoSerializingObject.)
Public methodStatic member SPViewTypeToString Returns a string representation of the specified view type.
Public methodStatic member StringToSPViewType Returns a view type for the specified string.
Public method ToString (Inherited from Object.)
Protected method UpdateParent (Inherited from SPAutoSerializingObject.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method ICollection.CopyTo Copies the elements of the collection to an array, starting at the specified array index. (Inherited from SPBaseCollection.)
Explicit interface implemetationPrivate property ICollection.IsSynchronized Gets a Boolean value that indicates whether access to the collection is synchronized or thread-safe. (Inherited from SPBaseCollection.)
Explicit interface implemetationPrivate property ICollection.SyncRoot Gets an object that is used to synchronize access to the collection. (Inherited from SPBaseCollection.)

Top

See Also

Reference

SPViewCollection Class

Microsoft.SharePoint Namespace