Aracılığıyla paylaş


DataFile.UsedSpace Property

Gets the amount of used space in the data file in KB.

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

Syntax

'Bildirim
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Expensive Or SfcPropertyFlags.Standalone)> _
Public ReadOnly Property UsedSpace As Double
    Get
'Kullanım
Dim instance As DataFile
Dim value As Double

value = instance.UsedSpace
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Expensive|SfcPropertyFlags.Standalone)]
public double UsedSpace { get; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Expensive|SfcPropertyFlags::Standalone)]
public:
property double UsedSpace {
    double get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Expensive|SfcPropertyFlags.Standalone)>]
member UsedSpace : float
function get UsedSpace () : double

Property Value

Type: System.Double
A Float64 value that specifies the amount of used space in the data file in KB.

Examples

Using Filegroups and Files to Store Data

See Also

Reference

DataFile Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Files and Filegroups Architecture

CREATE DATABASE (Transact-SQL)