Condividi tramite


Metodo SqlGeography.STGeometryType

Returns the Open Geospatial Consortium (OGC) type name represented by a geography instance.

Spazio dei nomi  Microsoft.SqlServer.Types
Assembly:  Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)

Sintassi

'Dichiarazione
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := True)> _
Public Function STGeometryType As SqlString
'Utilizzo
Dim instance As SqlGeography 
Dim returnValue As SqlString 

returnValue = instance.STGeometryType()
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
public SqlString STGeometryType()
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
public:
SqlString STGeometryType()
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)>]
member STGeometryType : unit -> SqlString
public function STGeometryType() : SqlString

Valore restituito

Tipo: System.Data.SqlTypes.SqlString
A SqlString value containing the OGC type name.

Osservazioni

The OGC type names that can be returned by the STGeometryType method are Point, LineString, Polygon, GeometryCollection, MultiPoint, MultiLineString, and MultiPolygon.

Vedere anche

Riferimento

SqlGeography Classe

Spazio dei nomi Microsoft.SqlServer.Types