Share via


Database Class

 

Represents a database in the Azure SQL Database service.

Namespace:   Microsoft.WindowsAzure.Management.Sql.Models
Assembly:  Microsoft.WindowsAzure.Management.Sql (in Microsoft.WindowsAzure.Management.Sql.dll)

Inheritance Hierarchy

System.Object
  Microsoft.WindowsAzure.Management.Sql.Models.SqlModelCommon
    Microsoft.WindowsAzure.Management.Sql.Models.Database

Syntax

public class Database : SqlModelCommon
public ref class Database : SqlModelCommon
type Database = 
    class
        inherit SqlModelCommon
    end
Public Class Database
    Inherits SqlModelCommon

Constructors

Name Description
System_CAPS_pubmethod Database()

Initializes a new instance of the Database class.

Properties

Name Description
System_CAPS_pubproperty AssignedServiceObjectiveId

Optional. Gets the ID of the assigned service objective for this database. This is the ID of the service objective being applied.

System_CAPS_pubproperty CollationName

Optional. Gets the name of the collation for this database.

System_CAPS_pubproperty CreationDate

Optional. Gets the date this database was created.

System_CAPS_pubproperty Edition

Optional. Gets the edition of the Azure SQL Database. The DatabaseEditions enumeration contains all the valid editions.

System_CAPS_pubproperty Id

Optional. Gets the ID of the database. This ID is unique within the server that contains the database.

System_CAPS_pubproperty IsFederationRoot

Optional. Gets whether or not the database is a federation root.

System_CAPS_pubproperty IsSystemObject

Optional. Gets whether or not the database is a system object.

System_CAPS_pubproperty MaximumDatabaseSizeInBytes

Optional. Gets the maximum size of this database expressed in bytes.

System_CAPS_pubproperty MaximumDatabaseSizeInGB

Optional. Gets the maximum size of this database expressed in gigabytes.

System_CAPS_pubproperty Name

Optional. Gets the name of the service resource.(Inherited from SqlModelCommon.)

System_CAPS_pubproperty RecoveryPeriodStartDate

Optional. Gets the starting date of the restorable period for this database.

System_CAPS_pubproperty ServiceObjectiveAssignmentErrorCode

Optional. Gets the error code raised when assigning a new service objective if there was one.

System_CAPS_pubproperty ServiceObjectiveAssignmentErrorDescription

Optional. Gets the description of the error if an error occured while applying a new service objective.

System_CAPS_pubproperty ServiceObjectiveAssignmentState

Optional. Gets the state of the current service objective assignment in numerical format.

System_CAPS_pubproperty ServiceObjectiveAssignmentStateDescription

Optional. Gets the description of the state of the current service objective assignment.

System_CAPS_pubproperty ServiceObjectiveAssignmentSuccessDate

Optional. Gets the date the service objective assignment succeeded.

System_CAPS_pubproperty ServiceObjectiveId

Optional. Gets the ID of the current service objective.

System_CAPS_pubproperty SizeMB

Optional. Gets the current usage of the database in megabytes.

System_CAPS_pubproperty State

Optional. Gets the state of the service resource.(Inherited from SqlModelCommon.)

System_CAPS_pubproperty Type

Optional. Gets the type of the service resource.(Inherited from SqlModelCommon.)

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.WindowsAzure.Management.Sql.Models Namespace

Return to top