Udostępnij przez


Właściwość Volume.TotalSpaceUsed

Pobiera całkowitą magazynu używane woluminu w megabajtach.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Utility
Zestaw:  Microsoft.SqlServer.Management.Utility (w Microsoft.SqlServer.Management.Utility.dll)

Składnia

'Deklaracja
<SfcPropertyAttribute(SfcPropertyFlags.Data)> _
Public ReadOnly Property TotalSpaceUsed As Single
    Get
'Użycie
Dim instance As Volume
Dim value As Single

value = instance.TotalSpaceUsed
[SfcPropertyAttribute(SfcPropertyFlags.Data)]
public float TotalSpaceUsed { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Data)]
public:
property float TotalSpaceUsed {
    float get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Data)>]
member TotalSpaceUsed : float32
function get TotalSpaceUsed () : float

Wartość właściwości

Typ: System.Single
A Double wartość obiektu, który stanowi całkowita magazynu używanego woluminu w megabajtach.

Przykłady

VC #

System.Console.WriteLine(volume.TotalSpaceUsed);

VB

System.Console.WriteLine(volume.TotalSpaceUsed)

PowerShell

Write-Host $volume.TotalSpaceUsed