Remarque
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
Returns a value indicating the results of a comparison between two SqlHierarchyId nodes.
Espace de noms : Microsoft.SqlServer.Types
Assembly : Microsoft.SqlServer.Types (en Microsoft.SqlServer.Types.dll)
Syntaxe
'Déclaration
Public Function CompareTo ( _
hid As SqlHierarchyId _
) As Integer
'Utilisation
Dim instance As SqlHierarchyId
Dim hid As SqlHierarchyId
Dim returnValue As Integer
returnValue = instance.CompareTo(hid)
public int CompareTo(
SqlHierarchyId hid
)
public:
int CompareTo(
SqlHierarchyId hid
)
member CompareTo :
hid:SqlHierarchyId -> int
public function CompareTo(
hid : SqlHierarchyId
) : int
Paramètres
- hid
Type : Microsoft.SqlServer.Types.SqlHierarchyId
A SqlHierarchyId node to compare to this.
Valeur de retour
Type : System.Int32
A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has these meanings:
Value |
Meaning |
|---|---|
Less than zero |
this is less than obj. |
Zero |
this is equal to obj. |
Greater than zero |
this is greater than obj. |
Notes
If both SqlHierarchyId nodes are nullune référence Null (Nothing dans Visual Basic), returns 0.
If one SqlHierarchyId node is nullune référence Null (Nothing dans Visual Basic), it is considered to be less than the non-nullune référence Null (Nothing dans Visual Basic) SqlHierarchyId node.