共用方式為


DataType.Geography 屬性

The geography data type represents data in a round-earth coordinate system. The SQL Server geography data type stores ellipsoidal (round-earth) data, such as GPS latitude and longitude coordinates.

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

語法

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

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

屬性值

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

備註

The geography data type is predefined and available in each database. You can create table columns of type geography and operate on geography data just like you would use other system-supplied types.

範例

Visual Basic

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

PowerShell

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

請參閱

參考

DataType 類別

Microsoft.SqlServer.Management.Smo 命名空間