Compartir a través de


STGeometryType Método

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

Espacio de nombres:  Microsoft.SqlServer.Types
Ensamblado:  Microsoft.SqlServer.Types (en Microsoft.SqlServer.Types.dll)

Sintaxis

'Declaración
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := True)> _
Public Function STGeometryType As SqlString
'Uso
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

Valor devuelto

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

Comentarios

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