共用方式為


Geometry 屬性

The Geometry property contains spatial data that represents information about the physical location and shape of geometric objects.

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

語法

'宣告
Public Shared ReadOnly Property Geometry As DataType
    Get
'用途
Dim value As DataType

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

屬性值

型別:Microsoft.SqlServer.Management.Smo. . :: . .DataType
A DataType object value that specifies a Geometry definition in the data type.

範例

Visual Basic

Dim dt As DataType
dt = New DataType(SqlDataType.Geometry)

PowerShell

$dt = new-object Microsoft.SqlServer.Management.Smo.DataType([Microsoft.SqlServer.Management.Smo.SqlDataType]::Geometry)