ScriptOption.Indexes Property

Gets an object that specifies whether indexes are included in the generated script.

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

Syntax

'Declaration
Public Shared ReadOnly Property Indexes As ScriptOption
    Get
'Usage
Dim value As ScriptOption

value = ScriptOption.Indexes
public static ScriptOption Indexes { get; }
public:
static property ScriptOption^ Indexes {
    ScriptOption^ get ();
}
static member Indexes : ScriptOption
static function get Indexes () : ScriptOption

Property Value

Type: Microsoft.SqlServer.Management.Smo.ScriptOption
A ScriptOption object that represents the ClusteredIndexesin the scripting options.

Examples

Scripting