共用方式為


TotalSpaceUtilization 屬性

Gets the space used as a percentage of the total storage capacity of the volume.

命名空間:  Microsoft.SqlServer.Management.Utility
組件:  Microsoft.SqlServer.Management.Utility (在 Microsoft.SqlServer.Management.Utility.dll 中)

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.Data)> _
Public ReadOnly Property TotalSpaceUtilization As Single
    Get
'用途
Dim instance As Volume
Dim value As Single

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

屬性值

型別:System. . :: . .Single
A Double object value that specifies the spaced used as a percentage of the total storage capacity of the volume.

範例

VC#

System.Console.WriteLine(volume.TotalSpaceUtilization);

VB

System.Console.WriteLine(volume.TotalSpace)

PowerShell

Write-Host $volume.TotalSpace