다음을 통해 공유


SqlHierarchyId.IsDescendantOf(SqlHierarchyId) Method

Definition

Gets a value indicating whether the SqlHierarchyId node is the descendant of the parent.

[Microsoft.SqlServer.Server.SqlMethod(DataAccess=Microsoft.SqlServer.Server.DataAccessKind.None, InvokeIfReceiverIsNull=false, IsDeterministic=true, IsMutator=false, IsPrecise=true, OnNullCall=false, SystemDataAccess=Microsoft.SqlServer.Server.SystemDataAccessKind.None)]
public System.Data.SqlTypes.SqlBoolean IsDescendantOf (Microsoft.SqlServer.Types.SqlHierarchyId parent);
[<Microsoft.SqlServer.Server.SqlMethod(DataAccess=Microsoft.SqlServer.Server.DataAccessKind.None, InvokeIfReceiverIsNull=false, IsDeterministic=true, IsMutator=false, IsPrecise=true, OnNullCall=false, SystemDataAccess=Microsoft.SqlServer.Server.SystemDataAccessKind.None)>]
member this.IsDescendantOf : Microsoft.SqlServer.Types.SqlHierarchyId -> System.Data.SqlTypes.SqlBoolean
Public Function IsDescendantOf (parent As SqlHierarchyId) As SqlBoolean

Parameters

parent
SqlHierarchyId

The specified SqlHierarchyId node for which the IsDescendantOf test is performed.

Returns

Boolean, true (1) for all the nodes in the sub-tree rooted at parent; false (0) for all other nodes.

Attributes

Applies to