SqlHierarchyId.IsDescendantOf(SqlHierarchyId) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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