Volume.TotalSpace 属性

Gets the total storage capacity of the volume in megabytes.

命名空间:  Microsoft.SqlServer.Management.Utility
程序集:  Microsoft.SqlServer.Management.Utility(在 Microsoft.SqlServer.Management.Utility.dll 中)

语法

声明
<SfcPropertyAttribute(SfcPropertyFlags.Data)> _
Public ReadOnly Property TotalSpace As Single 
    Get
用法
Dim instance As Volume 
Dim value As Single 

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

属性值

类型:System.Single
A Double object value that represents the total storage capacity of the volume in megabytes.

示例

VC#

System.Console.WriteLine(volume.TotalSpace);

VB

System.Console.WriteLine(volume.TotalSpace)

PowerShell

Write-Host $volume.TotalSpace 

请参阅

参考

Volume 类

Microsoft.SqlServer.Management.Utility 命名空间