Share via


Volume.TotalSpaceUsed Property

Definition

Gets the total used storage on the volume in megabytes.

public:
 property float TotalSpaceUsed { float get(); };
[Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcProperty(Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.Data)]
public float TotalSpaceUsed { get; }
[<Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcProperty(Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.Data)>]
member this.TotalSpaceUsed : single
Public ReadOnly Property TotalSpaceUsed As Single

Property Value

A Double object value that represents the total used storage on the volume in megabytes.

Attributes

Examples

VC#

System.Console.WriteLine(volume.TotalSpaceUsed);  

VB

System.Console.WriteLine(volume.TotalSpaceUsed)  

PowerShell

Write-Host $volume.TotalSpaceUsed   

Applies to