Partager via


Méthode SqlGeometry.STDimension

Returns the maximum dimension of a SqlGeometry instance.

Espace de noms :  Microsoft.SqlServer.Types
Assembly :  Microsoft.SqlServer.Types (en Microsoft.SqlServer.Types.dll)

Syntaxe

'Déclaration
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := True)> _
Public Function STDimension As SqlInt32
'Utilisation
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

Valeur de retour

Type : System.Data.SqlTypes.SqlInt32
A SqlInt32 value that represents the maximum dimension of the SqlGeometry.

Notes

Returns -1 if the SqlGeometry instance is empty.

Voir aussi

Référence

SqlGeometry Classe

Espace de noms Microsoft.SqlServer.Types