SqlHierarchyId.IsDescendantOf 메서드

SQL Server 2012

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

네임스페이스:  Microsoft.SqlServer.Types
어셈블리:  Microsoft.SqlServer.Types(Microsoft.SqlServer.Types.dll)

[SqlMethodAttribute(DataAccess = DataAccessKind.None, SystemDataAccess = SystemDataAccessKind.None, 
	InvokeIfReceiverIsNull = false, OnNullCall = false, 
	IsDeterministic = true, IsPrecise = true, IsMutator = false)]
public SqlBoolean IsDescendantOf(
	SqlHierarchyId parent

매개 변수

유형: Microsoft.SqlServer.Types.SqlHierarchyId
The specified SqlHierarchyId node for which the IsDescendantOf test is performed.

반환 값

유형: System.Data.SqlTypes.SqlBoolean
Boolean, true (1) for all the nodes in the sub-tree rooted at parent; false (0) for all other nodes.

parent is considered its own descendant.