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.
Gets the value of a descendant SqlHierarchyId node that is greater than child1 and less than child2.
Espace de noms : Microsoft.SqlServer.Types
Assembly : Microsoft.SqlServer.Types (en Microsoft.SqlServer.Types.dll)
Syntaxe
'Déclaration
<SqlMethodAttribute(DataAccess := DataAccessKind.None, SystemDataAccess := SystemDataAccessKind.None, _
InvokeIfReceiverIsNull := False, OnNullCall := True, _
IsDeterministic := True, IsPrecise := True, IsMutator := False)> _
Public Function GetDescendant ( _
child1 As SqlHierarchyId, _
child2 As SqlHierarchyId _
) As SqlHierarchyId
'Utilisation
Dim instance As SqlHierarchyId
Dim child1 As SqlHierarchyId
Dim child2 As SqlHierarchyId
Dim returnValue As SqlHierarchyId
returnValue = instance.GetDescendant(child1, _
child2)
[SqlMethodAttribute(DataAccess = DataAccessKind.None, SystemDataAccess = SystemDataAccessKind.None,
InvokeIfReceiverIsNull = false, OnNullCall = true,
IsDeterministic = true, IsPrecise = true, IsMutator = false)]
public SqlHierarchyId GetDescendant(
SqlHierarchyId child1,
SqlHierarchyId child2
)
[SqlMethodAttribute(DataAccess = DataAccessKind::None, SystemDataAccess = SystemDataAccessKind::None,
InvokeIfReceiverIsNull = false, OnNullCall = true,
IsDeterministic = true, IsPrecise = true, IsMutator = false)]
public:
SqlHierarchyId GetDescendant(
SqlHierarchyId child1,
SqlHierarchyId child2
)
[<SqlMethodAttribute(DataAccess = DataAccessKind.None, SystemDataAccess = SystemDataAccessKind.None,
InvokeIfReceiverIsNull = false, OnNullCall = true,
IsDeterministic = true, IsPrecise = true, IsMutator = false)>]
member GetDescendant :
child1:SqlHierarchyId *
child2:SqlHierarchyId -> SqlHierarchyId
public function GetDescendant(
child1 : SqlHierarchyId,
child2 : SqlHierarchyId
) : SqlHierarchyId
Paramètres
- child1
Type : Microsoft.SqlServer.Types.SqlHierarchyId
The lower bound.
- child2
Type : Microsoft.SqlServer.Types.SqlHierarchyId
The upper bound.
Valeur de retour
Type : Microsoft.SqlServer.Types.SqlHierarchyId
A SqlHierarchyId with a value greater than the lower bound and less than the upper bound.
Notes
If parent is nullune référence Null (Nothing dans Visual Basic), returns nullune référence Null (Nothing dans Visual Basic).
If parent is not nullune référence Null (Nothing dans Visual Basic), and both child1 and child2 are nullune référence Null (Nothing dans Visual Basic), returns a descendant of parent.
If parent and child1 are not nullune référence Null (Nothing dans Visual Basic), and child2 is nullune référence Null (Nothing dans Visual Basic), returns a descendant of parent greater than child1.
If parent and child2 are not nullune référence Null (Nothing dans Visual Basic) and child1 is nullune référence Null (Nothing dans Visual Basic), returns a descendant of parent less than child2.
If parent, child1, and child2 are not nullune référence Null (Nothing dans Visual Basic), returns a descendant of parent greater than child1 and less than child2.
An exception is raised if child1 or child2 are not nullune référence Null (Nothing dans Visual Basic) and are not a descendant of parent.
If child1 >= child2, an exception is raised.