共用方式為


SpatialIndexType 屬性

Gets or sets the Spatial Index Type for a column.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.ReadOnlyAfterCreation)> _
Public Property SpatialIndexType As SpatialIndexType
    Get
    Set
'用途
Dim instance As Index
Dim value As SpatialIndexType

value = instance.SpatialIndexType

instance.SpatialIndexType = value
[SfcPropertyAttribute(SfcPropertyFlags.ReadOnlyAfterCreation)]
public SpatialIndexType SpatialIndexType { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::ReadOnlyAfterCreation)]
public:
property SpatialIndexType SpatialIndexType {
    SpatialIndexType get ();
    void set (SpatialIndexType value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.ReadOnlyAfterCreation)>]
member SpatialIndexType : SpatialIndexType with get, set
function get SpatialIndexType () : SpatialIndexType
function set SpatialIndexType (value : SpatialIndexType)

備註

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.