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 | |
---|---|---|
Capacity | (Inherited from CollectionBase.) | |
Count | (Inherited from CollectionBase.) | |
InnerList | (Inherited from CollectionBase.) | |
IsSynchronized | Obsolete. Obsolete. Gets a Boolean value that indicates whether access to the collection is synchronized or thread-safe. | |
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. | |
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. | |
List | (Inherited from CollectionBase.) | |
ServerRelativeUrl | Obsolete. Obsolete. Gets the server-relative URL of the collection. | |
Storage | Obsolete. Obsolete. Gets the storage mode that was used to create the collection. | |
SyncRoot | Obsolete. Obsolete. Gets an object that is used to synchronize access to the collection. | |
Web | Obsolete. Obsolete. Gets the parent Web site of the collection. |
Top
Methods
Name | Description | |
---|---|---|
Add(ListViewWebPart) | Obsolete. Obsolete. Adds the specified List View Web Part to the collection. | |
Add(WebPart) | Obsolete. Obsolete. Adds the specified Web Part to the collection. | |
Add(String) | Obsolete. Obsolete. Adds a Web Part to the collection based on the specified Web Part definition file. | |
Add(WebPart, Boolean) | Obsolete. Obsolete. | |
CacheInvalidate | Obsolete. Obsolete. Invalidates the cache for a Web Part, including the output and Web Part caches. | |
Clear | Obsolete. Obsolete. | |
Contains | Obsolete. Obsolete. Returns a Boolean value that indicates whether the specified Web Part is contained in the collection. | |
CopyTo | Obsolete. Obsolete. Copies the elements of the collection to an array of Web Part objects, starting at the specified array index. | |
Delete | Obsolete. Obsolete. Deletes the Web Part with the specified GUID from the collection. | |
DeleteAllPersonalizations() | Obsolete. Obsolete. Deletes all personalizations by all users from the collection. | |
DeleteAllPersonalizations(Int32) | Obsolete. Obsolete. Deletes all personalizations by the user with the specified ID from the collection. | |
DeletePersonalizations | Obsolete. Obsolete. Deletes personalizations of the Web Part with the specified GUID. | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetEnumerator | Obsolete. Obsolete. Returns an enumerator to iterate through the collection. | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
IndexOf | Obsolete. Obsolete. Returns the collection index of the specified Web Part. | |
MemberwiseClone | (Inherited from Object.) | |
OnClear | (Inherited from CollectionBase.) | |
OnClearComplete | (Inherited from CollectionBase.) | |
OnInsert | (Inherited from CollectionBase.) | |
OnInsertComplete | (Inherited from CollectionBase.) | |
OnRemove | (Inherited from CollectionBase.) | |
OnRemoveComplete | (Inherited from CollectionBase.) | |
OnSet | (Inherited from CollectionBase.) | |
OnSetComplete | (Inherited from CollectionBase.) | |
OnValidate | (Inherited from CollectionBase.) | |
RemoveAt | Obsolete. Obsolete. | |
SaveChanges | Obsolete. Obsolete. Saves changes made to a single Web Part. | |
ToString | (Inherited from Object.) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
IList.Add | Obsolete. | |
IList.Clear | Obsolete. | |
IList.Insert | Obsolete. | |
IList.Remove | Obsolete. | |
IList.RemoveAt | Obsolete. | |
IList.Contains | (Inherited from CollectionBase.) | |
ICollection.CopyTo | (Inherited from CollectionBase.) | |
IList.IndexOf | (Inherited from CollectionBase.) | |
IList.IsFixedSize | (Inherited from CollectionBase.) | |
IList.IsReadOnly | (Inherited from CollectionBase.) | |
ICollection.IsSynchronized | (Inherited from CollectionBase.) | |
IList.Item | (Inherited from CollectionBase.) | |
ICollection.SyncRoot | (Inherited from CollectionBase.) |
Top