共用方式為


SpaceUsed 屬性

Gets or sets the disk space used to store the index data in kilobytes.

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

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.Expensive)> _
Public ReadOnly Property SpaceUsed As Double
    Get
'用途
Dim instance As Index
Dim value As Double

value = instance.SpaceUsed
[SfcPropertyAttribute(SfcPropertyFlags.Expensive)]
public double SpaceUsed { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Expensive)]
public:
property double SpaceUsed {
    double get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Expensive)>]
member SpaceUsed : float
function get SpaceUsed () : double

屬性值

型別:System. . :: . .Double
An Int64 value that specifies the space used, in KB.

備註

[!附註]

For indexes based on the UserDefinedTableType object the value of SpaceUsed property is zero. Also, if setting the property issues a dbcc command it will not be executed.