Membres SPDatabase (Microsoft.SharePoint.Administration)
Encapsulates access to Microsoft SQL Server databases.
Les tableaux suivants contiennent la liste des membres exposés par le type SPDatabase .
Constructeurs publics
Nom | Description | |
---|---|---|
SPDatabase | Surchargé. Initializes a new instance of the SPDatabase class. |
Haut de page
Champs protégés
Nom | Description | |
---|---|---|
SqlDatabaseOption | Specifies SQL database options that are used in Transact-SQL statements. |
Haut de page
Propriétés publiques
Nom | Description | |
---|---|---|
CanRenameOnRestore | Gets a Boolean value that indicates whether the database can be renamed when it is restored. | |
CanSelectForBackup | Gets or sets a Boolean value that specifies whether the database object and its children can be selected for a backup operation in the Central Administration user interface. | |
CanSelectForRestore | Gets or sets a Boolean value that specifies whether this object and its children can be selected for a restore operation in the Central Administration user interface. | |
CanUpgrade | Gets a value that indicates whether the object can be upgraded.(hérité de SPPersistedUpgradableObject) | |
DatabaseConnectionString | Gets the connection string that is used to connect to the database. | |
DiskSizeRequired | Gets the amount of disk space that is required for a backup. | |
DisplayName | Gets the display name that describes the persisted object instance within the administrative user interface.(hérité de SPPersistedObject) | |
Exists | Gets a Boolean value that indicates whether the database exists. | |
Farm | Gets the server farm where the object lives.(hérité de SPPersistedObject) | |
Id | Gets or sets the GUID that is associated with the object. (hérité de SPPersistedObject) | |
IsReadOnly | ||
Name | Gets or sets the name that identifies a particular instance of the object.(hérité de SPPersistedObject) | |
NeedsUpgrade | Gets or sets a Boolean value that specifies whether the object needs to be upgraded.(hérité de SPPersistedUpgradableObject) | |
NeedsUpgradeIncludeChildren | Gets a Boolean value that indicates whether the object should be upgraded, considering the children of the object.(hérité de SPPersistedUpgradableObject) | |
Parent | Gets the ID of the parent class that declares the object.(hérité de SPPersistedObject) | |
Password | Gets or sets the password that is used for SQL authentication. | |
Properties | Gets a property bag that is used to store properties for the persisted object.(hérité de SPPersistedObject) | |
Server | Gets the server that contains the database. | |
ServiceInstance | Gets an instance of the SQL service that owns the database. | |
Status | Gets or sets the status of the object that the class represents.(hérité de SPPersistedObject) | |
TypeName | Gets the display name that describes the object type in the administrative user interface. (hérité de SPPersistedObject) | |
UpgradeContext | Gets additional upgrade context. (hérité de SPPersistedUpgradableObject) | |
UpgradedPersistedProperties | Gets the collection of field names and values for fields that were deleted or changed. (hérité de SPAutoSerializingObject) | |
Username | Gets or sets the user name that is used for SQL authentication login. | |
Version | Gets the time that the object was last updated.(hérité de SPPersistedObject) |
Haut de page
Méthodes publiques
(voir aussi Méthodes protégées )
Nom | Description | |
---|---|---|
AddBackupObjects | Adds the database and its children to the backup/restore job. This method implements the AddBackupObjects method that is defined in the Microsoft.SharePoint.Administration.Backup.IBackupRestore interface. The SPDatabase class can be backed up and restored and must therefore implement the Microsoft.SharePoint.Administration.Backup.IBackupRestore interface, but this method is only intended to be callable from catastrophic backup and restore infrastructure code in Windows SharePoint Services. | |
ChangeDatabaseInstance | Modifies the specified database service instance for each connection string that is used to access the database. | |
Clone | Returns a clone of the object that does not come from the in-memory cache, which enables calling code to help ensure thread safety.(hérité de SPPersistedObject) | |
Delete | Removes the object from the collection and the server farm.(hérité de SPPersistedObject) | |
Equals | Surchargé. (hérité de SPPersistedObject) | |
GenerateConnectionStringForProvisioning | Creates a connection string that is used in provisioning based on a specified connection string. | |
GenerateRandomName | Generates a random database name using the specified connection string as a starting point. | |
GetChild | Surchargé. (hérité de SPPersistedObject) | |
GetHashCode | Serves as a hash function for the persisted object.(hérité de SPPersistedObject) | |
GetObjectData | (hérité de SPAutoSerializingObject) | |
GetType | (hérité de Object) | |
Invalidate | Invalidates computed property values of the IUpgradable interface.(hérité de SPPersistedUpgradableObject) | |
OnAbort | Called when the backup terminates unexpectedly. This method implements the OnAbort method that is defined in the Microsoft.SharePoint.Administration.Backup.IBackupRestore interface. The SPDatabase class can be backed up and restored and must therefore implement the Microsoft.SharePoint.Administration.Backup.IBackupRestore interface, but this method is only intended to be callable from catastrophic backup and restore infrastructure code in Windows SharePoint Services. | |
OnBackup | Called when the database is being backed up. This method implements the OnBackup method that is defined in the Microsoft.SharePoint.Administration.Backup.IBackupRestore interface. The SPDatabase class can be backed up and restored and must therefore implement the Microsoft.SharePoint.Administration.Backup.IBackupRestore interface, but this method is only intended to be callable from catastrophic backup and restore infrastructure code in Windows SharePoint Services. | |
OnBackupComplete | Called after the backup has completed. This method implements the OnBackupComplete method that is defined in the Microsoft.SharePoint.Administration.Backup.IBackupRestore interface. The SPDatabase class can be backed up and restored and must therefore implement the Microsoft.SharePoint.Administration.Backup.IBackupRestore interface, but this method is only intended to be callable from catastrophic backup and restore infrastructure code in Windows SharePoint Services. | |
OnPostRestore | Called after the restore has completed. This method implements the OnPostRestore method that is defined in the Microsoft.SharePoint.Administration.Backup.IBackupRestore interface. The SPDatabase class can be backed up and restored and must therefore implement the Microsoft.SharePoint.Administration.Backup.IBackupRestore interface, but this method is only intended to be callable from catastrophic backup and restore infrastructure code in Windows SharePoint Services. | |
OnPrepareBackup | Called before the backup begins. This method implements the OnPrepareBackup method that is defined in the Microsoft.SharePoint.Administration.Backup.IBackupRestore interface. The SPDatabase class can be backed up and restored and must therefore implement the Microsoft.SharePoint.Administration.Backup.IBackupRestore interface, but this method is only intended to be callable from catastrophic backup and restore infrastructure code in Windows SharePoint Services. | |
OnPreRestore | Called before the restore begins. This method implements the OnPreRestore method that is defined in the Microsoft.SharePoint.Administration.Backup.IBackupRestore interface. The SPDatabase class can be backed up and restored and must therefore implement the Microsoft.SharePoint.Administration.Backup.IBackupRestore interface, but this method is only intended to be callable from catastrophic backup and restore infrastructure code in Windows SharePoint Services. | |
OnRestore | Called when the database is being restored. This method implements the OnRestore method that is defined in the Microsoft.SharePoint.Administration.Backup.IBackupRestore interface. The SPDatabase class can be backed up and restored and must therefore implement the Microsoft.SharePoint.Administration.Backup.IBackupRestore interface, but this method is only intended to be callable from catastrophic backup and restore infrastructure code in Windows SharePoint Services. | |
op_Equality | (hérité de SPPersistedObject) | |
op_Inequality | (hérité de SPPersistedObject) | |
Provision | Surchargé. | |
ReferenceEquals | (hérité de Object) | |
ToString | Returns the type and name of an object and of all its ancestors (parent, grandparent, and so on).(hérité de SPPersistedObject) | |
Uncache | Frees the memory cache that is used by the object.(hérité de SPPersistedObject) | |
Unprovision | Substitué. Makes the necessary changes to the local server to clean up after deleting the database. | |
Update | Surchargé. Substitué. | |
Upgrade | Surchargé. Upgrades the object.(hérité de SPPersistedUpgradableObject) |
Haut de page
Méthodes protégées
Nom | Description | |
---|---|---|
Finalize | (hérité de Object) | |
MemberwiseClone | (hérité de Object) | |
OnDeserialization | Called immediately after the base class deserializes itself to do additional work.(hérité de SPPersistedObject) | |
Provision | Surchargé. Creates a SQL Server database with a user schema. | |
UpdateParent | Causes the containing SPPersistedObject, if one exists, to update its state. (hérité de SPAutoSerializingObject) | |
Validate | Validates the state of all fields before persisting the object. (hérité de SPPersistedObject) |
Haut de page
Voir aussi
Référence
SPDatabase, classe
Microsoft.SharePoint.Administration, espace de noms