Udostępnij za pośrednictwem


Metoda SqlGeography.STNumGeometries

Zwraca liczbę mają geometrię, które tworzą SqlGeography wystąpienie.

Przestrzeń nazw:  Microsoft.SqlServer.Types
Zestaw:  Microsoft.SqlServer.Types (w Microsoft.SqlServer.Types.dll)

Składnia

'Deklaracja
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := True)> _
Public Function STNumGeometries As SqlInt32
'Użycie
Dim instance As SqlGeography
Dim returnValue As SqlInt32

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

Wartość zwracana

Typ: System.Data.SqlTypes.SqlInt32
A SqlInt32 wartość określająca liczbę mają geometrię, które tworzą SqlGeography wystąpienie.

Uwagi

Ta metoda zwraca wartość 1, jeśli Geografia wystąpienie nie jest MultiPoint, MultiLineString, MultiPolygon, lub GeometryCollection wystąpienie lub jeśli 0 SqlGeography wystąpienie jest pusta.