Share via


Volume.TotalSpace Property

Definition

Gets the total storage capacity of the volume in megabytes.

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

Property Value

A Double object value that represents the total storage capacity of the volume in megabytes.

Attributes

Examples

VC#

System.Console.WriteLine(volume.TotalSpace);  

VB

System.Console.WriteLine(volume.TotalSpace)  

PowerShell

Write-Host $volume.TotalSpace   

Applies to