SPDatabaseParameters members

Represents the parameters for creating new SPDatabase objects.

The SPDatabaseParameters type exposes the following members.

Properties

  Name Description
Public property Database Gets the database name to use for the database connection.
Public property FailoverPartner Gets the name of the failover server.
Public property Password Gets the password to use for the database connection.
Public property Server Gets the name of the server to use for the database connection.
Public property Username Gets the username to use for the database connection.

Top

Methods

  Name Description
Public methodStatic member CreateParameters(String, SPDatabaseParameterOptions) Creates a new database parameters object by using the specified parameters.
Public methodStatic member CreateParameters(String, String, SPDatabaseParameterOptions) Creates a new database parameters object by using the specified parameters.
Public methodStatic member CreateParameters(String, String, NetworkCredential, String, SPDatabaseParameterOptions) Creates a new database parameters object by using the specified parameters.
Public methodStatic member CreateParameters(String, String, String, SecureString, String, SPDatabaseParameterOptions) Creates a new database parameters object by using the specified parameters.
Public methodStatic member CreateParameters(String, String, String, String, String, SPDatabaseParameterOptions) Creates a new database parameters object by using the specified parameters.
Public method EnsureServiceInstance Ensures the SPDatabaseServiceInstance specified by the database parameters is initialized.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public methodStatic member FromConnectionString Creates a new database parameters object using the specified database connection string.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)
Public method Validate Validates the database parameters.

Top

See also

Reference

SPDatabaseParameters class

Microsoft.SharePoint.Administration namespace