Share via


Index.RecalculateSpaceUsage Method

Updates the disk resource usage of the index.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Sub RecalculateSpaceUsage
'Usage
Dim instance As Index

instance.RecalculateSpaceUsage()
public void RecalculateSpaceUsage()
public:
void RecalculateSpaceUsage()
member RecalculateSpaceUsage : unit -> unit
public function RecalculateSpaceUsage()

Remarks

Note

Indexes based on the UserDefinedTableType object cannot be modified and running this method will generate an exception.

Examples

Creating, Altering, and Removing Indexes

See Also

Reference

Index Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Indexes

ALTER INDEX (Transact-SQL)