SPContentDatabaseCollection Members

Include Protected Members
Include Inherited Members

A collection of references to content databases that are used by a single Web application.

The SPContentDatabaseCollection type exposes the following members.

Constructors

  Name Description
Public method SPContentDatabaseCollection() Reserved for internal use only.
Public method SPContentDatabaseCollection(SPVirtualServer) Initializes a new instance of the SPContentDatabaseCollection class.

Top

Properties

  Name Description
Public property Count Gets the number of content databases in the collection. (Overrides SPBaseCollection.Count.)
Public property Item[Guid] Gets the content database object with the specified GUID in the collection.
Public property Item[Int32] Gets the content database object at the specified index in the collection.
Public property UpgradedPersistedProperties Gets the collection of field names and values for fields that were deleted or changed. (Inherited from SPAutoSerializingObject.)

Top

Methods

  Name Description
Public method Add(SPContentDatabase) Adds a content database to the collection of databases that are used by the parent Web application.
Public method Add(String, String, String, String, Int32, Int32, Int32) Adds a content database to the collection of content databases that are used by the parent Web application and are based on specified database settings.
Public method Add(String, String, String, String, Int32, Int32, Int32, Boolean)
Public method Add(String, String, String, String, Int32, Int32, Int32, Boolean, Boolean)
Public method Delete Deletes the content database with the specified GUID.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetEnumerator Returns an enumerator that iterates through the collection.
Public method GetHashCode (Inherited from Object.)
Public method GetObjectData Gets the serialized state of the object. (Inherited from SPAutoSerializingObject.)
Public method GetType (Inherited from Object.)
Public method GetTypedEnumerator<T> (Inherited from SPBaseCollection.)
Protected method MemberwiseClone (Inherited from Object.)
Protected method OnDeserialization Called after the object has been deserialized from the file system cache or the database. (Inherited from SPAutoSerializingObject.)
Public method ToString (Inherited from Object.)
Protected method UpdateParent Causes the containing SPPersistedObject, if one exists, to update its state. (Inherited from SPAutoSerializingObject.)

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

See Also

Reference

SPContentDatabaseCollection Class

Microsoft.SharePoint.Administration Namespace