Partilhar via


SPWebPartCollection Members

Include Protected Members
Include Inherited Members

NOTE: This API is now obsolete.

Use the GetLimitedWebPartManager method of the SPFile class to return an SPLimitedWebPartManager object to manage Web Parts instead.

The SPWebPartCollection type exposes the following members.

Properties

  Name Description
Public property Capacity (Inherited from CollectionBase.)
Public property Count (Inherited from CollectionBase.)
Protected property InnerList (Inherited from CollectionBase.)
Public property IsSynchronized Obsolete. Obsolete. Gets a Boolean value that indicates whether access to the collection is synchronized or thread-safe.
Public property Item[Guid] Obsolete. Obsolete. Gets the Web Part object with the specified GUID from the collection. In C#, this property is an indexer for the SPWebPartCollection class.
Public property Item[Int32] Obsolete. Obsolete. Gets the Web Part object at the specified index in the collection. In C#, this property is an indexer for the SPWebPartCollection class.
Protected property List (Inherited from CollectionBase.)
Public property ServerRelativeUrl Obsolete. Obsolete. Gets the server-relative URL of the collection.
Public property Storage Obsolete. Obsolete. Gets the storage mode that was used to create the collection.
Public property SyncRoot Obsolete. Obsolete. Gets an object that is used to synchronize access to the collection.
Public property Web Obsolete. Obsolete. Gets the parent Web site of the collection.

Top

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.)
Explicit interface implemetationPrivate property IList.IsFixedSize (Inherited from CollectionBase.)
Explicit interface implemetationPrivate property IList.IsReadOnly (Inherited from CollectionBase.)
Explicit interface implemetationPrivate property ICollection.IsSynchronized (Inherited from CollectionBase.)
Explicit interface implemetationPrivate property IList.Item (Inherited from CollectionBase.)
Explicit interface implemetationPrivate property ICollection.SyncRoot (Inherited from CollectionBase.)

Top

See Also

Reference

SPWebPartCollection Class

Microsoft.SharePoint Namespace