Share via


Volume.TotalSpaceUsed Property

Gets the total used storage on the volume in megabytes.

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

Syntax

'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.Data)> _
Public ReadOnly Property TotalSpaceUsed As Single 
    Get
'Usage
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

Property Value

Type: System.Single
A Double object value that represents the total used storage on the volume in megabytes.

Examples

VC#

System.Console.WriteLine(volume.TotalSpaceUsed);

VB

System.Console.WriteLine(volume.TotalSpaceUsed)

PowerShell

Write-Host $volume.TotalSpaceUsed 

See Also

Reference

Volume Class

Microsoft.SqlServer.Management.Utility Namespace