Share via


IDatabasePerformanceFacet.Size Property

Gets the size of the database in megabytes (MB).

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
<DisplayNameKeyAttribute("Database_SizeName")> _
<DisplayDescriptionKeyAttribute("Database_SizeDesc")> _
ReadOnly Property Size As Double
    Get
'Usage
Dim instance As IDatabasePerformanceFacet
Dim value As Double

value = instance.Size
[DisplayNameKeyAttribute("Database_SizeName")]
[DisplayDescriptionKeyAttribute("Database_SizeDesc")]
double Size { get; }
[DisplayNameKeyAttribute(L"Database_SizeName")]
[DisplayDescriptionKeyAttribute(L"Database_SizeDesc")]
property double Size {
    double get ();
}
[<DisplayNameKeyAttribute("Database_SizeName")>]
[<DisplayDescriptionKeyAttribute("Database_SizeDesc")>]
abstract Size : float
function get Size () : double

Property Value

Type: System.Double
A Double value that specifies the database in megabytes (MB).