Index.Drop Method
Drops the index.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public Sub Drop
'Usage
Dim instance As Index
instance.Drop()
public void Drop()
public:
virtual void Drop() sealed
abstract Drop : unit -> unit
override Drop : unit -> unit
public final function Drop()
Implements
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