SqlHierarchyId.IsDescendantOf Method (SqlHierarchyId)
Applies To: SQL Server 2016 Preview
Gets a value indicating whether the SqlHierarchyId node is the descendant of the parent.
Namespace: Microsoft.SqlServer.Types
Assembly: Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)
Syntax
[SqlMethodAttribute(DataAccess = DataAccessKind.None, SystemDataAccess = SystemDataAccessKind.None,
InvokeIfReceiverIsNull = false, OnNullCall = false, IsDeterministic = true,
IsPrecise = true, IsMutator = false)]
public SqlBoolean IsDescendantOf(
SqlHierarchyId parent
)
public:
[SqlMethodAttribute(DataAccess = DataAccessKind::None, SystemDataAccess = SystemDataAccessKind::None,
InvokeIfReceiverIsNull = false, OnNullCall = false, IsDeterministic = true,
IsPrecise = true, IsMutator = false)]
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
<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
Parameters
parent
Type: Microsoft.SqlServer.Types.SqlHierarchyIdThe specified SqlHierarchyId node for which the IsDescendantOf test is performed.
Return Value
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.
Remarks
parent is considered its own descendant.
See Also
SqlHierarchyId Structure
Microsoft.SqlServer.Types Namespace
Return to top