Index.Disable Method
Disables the index.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public Sub Disable
'Usage
Dim instance As Index
instance.Disable()
public void Disable()
public:
void Disable()
member Disable : unit -> unit
public function Disable()
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
Microsoft.SqlServer.Management.Smo Namespace