SqlHierarchyId.IsDescendantOf 메서드

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 Function IsDescendantOf ( _
    parent As SqlHierarchyId _
) As SqlBoolean
‘사용 방법
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

매개 변수

반환 값

유형: 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.

참고 항목

참조

SqlHierarchyId 구조

Microsoft.SqlServer.Types 네임스페이스