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 a value indicating whether the SqlHierarchyId node is the descendant of the parent.
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 := False, _
IsDeterministic := True, IsPrecise := True, IsMutator := False)> _
Public Function IsDescendantOf ( _
parent As SqlHierarchyId _
) As SqlBoolean
'Utilisation
Dim instance As SqlHierarchyId
Dim parent As SqlHierarchyId
Dim returnValue As SqlBoolean
returnValue = instance.IsDescendantOf(parent)
[SqlMethodAttribute(DataAccess = DataAccessKind.None, SystemDataAccess = SystemDataAccessKind.None,
InvokeIfReceiverIsNull = false, OnNullCall = false,
IsDeterministic = true, IsPrecise = true, IsMutator = false)]
public SqlBoolean IsDescendantOf(
SqlHierarchyId parent
)
[SqlMethodAttribute(DataAccess = DataAccessKind::None, SystemDataAccess = SystemDataAccessKind::None,
InvokeIfReceiverIsNull = false, OnNullCall = false,
IsDeterministic = true, IsPrecise = true, IsMutator = false)]
public:
SqlBoolean IsDescendantOf(
SqlHierarchyId parent
)
[<SqlMethodAttribute(DataAccess = DataAccessKind.None, SystemDataAccess = SystemDataAccessKind.None,
InvokeIfReceiverIsNull = false, OnNullCall = false,
IsDeterministic = true, IsPrecise = true, IsMutator = false)>]
member IsDescendantOf :
parent:SqlHierarchyId -> SqlBoolean
public function IsDescendantOf(
parent : SqlHierarchyId
) : SqlBoolean
Paramètres
- parent
Type : Microsoft.SqlServer.Types.SqlHierarchyId
The specified SqlHierarchyId node for which the IsDescendantOf test is performed.
Valeur de retour
Type : System.Data.SqlTypes.SqlBoolean
Boolean , true (1) for all the nodes in the sub-tree rooted at parent; false (0) for all other nodes.
Notes
parent is considered its own descendant.