Udostępnij za pośrednictwem


Metoda SqlGeometry.STDimension

Zwraca maksymalny wymiar SqlGeometry 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 STDimension As SqlInt32
'Użycie
Dim instance As SqlGeometry
Dim returnValue As SqlInt32

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

Wartość zwracana

Typ: System.Data.SqlTypes.SqlInt32
A SqlInt32 wartość, która reprezentuje maksymalny wymiar SqlGeometry.

Uwagi

Zwraca wartość -1, jeśli SqlGeometry wystąpienie jest pusta.