SPWebPartCollection methods

NOTE: This API is now obsolete.

The SPWebPartCollection type exposes the following members.

Methods

  Name Description
Public method Add(ListViewWebPart) Obsolete. Obsolete. Adds the specified List View Web Part to the collection.
Public method Add(WebPart) Obsolete. Obsolete. Adds the specified Web Part to the collection.
Public method Add(String) Obsolete. Obsolete. Adds a Web Part to the collection based on the specified Web Part definition file.
Public method Add(WebPart, Boolean) Obsolete. Obsolete.
Public method CacheInvalidate Obsolete. Obsolete. Invalidates the cache for a Web Part, including the output and Web Part caches.
Public method Clear Obsolete. Obsolete.
Public method Contains Obsolete. Obsolete. Returns a Boolean value that indicates whether the specified Web Part is contained in the collection.
Public method CopyTo Obsolete. Obsolete. Copies the elements of the collection to an array of Web Part objects, starting at the specified array index.
Public method Delete Obsolete. Obsolete. Deletes the Web Part with the specified GUID from the collection.
Public method DeleteAllPersonalizations() Obsolete. Obsolete. Deletes all personalizations by all users from the collection.
Public method DeleteAllPersonalizations(Int32) Obsolete. Obsolete. Deletes all personalizations by the user with the specified ID from the collection.
Public method DeletePersonalizations Obsolete. Obsolete. Deletes personalizations of the Web Part with the specified GUID.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetEnumerator Obsolete. Obsolete. Returns an enumerator to iterate through the collection.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method IndexOf Obsolete. Obsolete. Returns the collection index of the specified Web Part.
Protected method MemberwiseClone (Inherited from Object.)
Protected method OnClear (Inherited from CollectionBase.)
Protected method OnClearComplete (Inherited from CollectionBase.)
Protected method OnInsert (Inherited from CollectionBase.)
Protected method OnInsertComplete (Inherited from CollectionBase.)
Protected method OnRemove (Inherited from CollectionBase.)
Protected method OnRemoveComplete (Inherited from CollectionBase.)
Protected method OnSet (Inherited from CollectionBase.)
Protected method OnSetComplete (Inherited from CollectionBase.)
Protected method OnValidate (Inherited from CollectionBase.)
Public method RemoveAt Obsolete. Obsolete.
Public method SaveChanges Obsolete. Obsolete. Saves changes made to a single Web Part.
Public method ToString (Inherited from Object.)

Top

Explicit interface implementations

  Name Description
Explicit interface implemetationPrivate method IList.Add Obsolete.
Explicit interface implemetationPrivate method IList.Clear Obsolete.
Explicit interface implemetationPrivate method IList.Insert Obsolete.
Explicit interface implemetationPrivate method IList.Remove Obsolete.
Explicit interface implemetationPrivate method IList.RemoveAt Obsolete.
Explicit interface implemetationPrivate method IList.Contains (Inherited from CollectionBase.)
Explicit interface implemetationPrivate method ICollection.CopyTo (Inherited from CollectionBase.)
Explicit interface implemetationPrivate method IList.IndexOf (Inherited from CollectionBase.)

Top

See also

Reference

SPWebPartCollection class

Microsoft.SharePoint namespace