Udostępnij przez


Index.SpatialIndexType Property

Gets or sets the Spatial Index Type for a column.

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

Syntax

'Deklaracja
<SfcPropertyAttribute(SfcPropertyFlags.ReadOnlyAfterCreation)> _
Public Property SpatialIndexType As SpatialIndexType
[SfcPropertyAttribute(SfcPropertyFlags.ReadOnlyAfterCreation)] 
public SpatialIndexType SpatialIndexType { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::ReadOnlyAfterCreation)] 
public:
property SpatialIndexType SpatialIndexType {
    SpatialIndexType get ();
    void set (SpatialIndexType value);
}
/** @property */
public SpatialIndexType get_SpatialIndexType ()

/** @property */
public void set_SpatialIndexType (SpatialIndexType value)
public function get SpatialIndexType () : SpatialIndexType

public function set SpatialIndexType (value : SpatialIndexType)

Property Value

SpatialIndexType

Remarks

Valid values for the SpatialIndexType property are:

Value

Description

Index is not spatial

None = 0

Geometric Spatial Index Type

GeometryGrid = 1

Geography Grid Spatial Index Type

GeographyGrid = 2

This property cannot be modified by using the Alter method. To change the property, the index must be rebuilt or re-created.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.