SqlHierarchyId.IsDescendantOf 方法 (SqlHierarchyId)

 

获取一个值,该值指示 SqlHierarchyId 节点是否是父级的后代。

命名空间:   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
)
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

参数

返回值

Type: System.Data.SqlTypes.SqlBoolean

Boolean,对于以 parent 为根的子树中的所有节点均为 true (1);对于其他所有节点均为 false (0)。

备注

parent 被视为其本身的后代。

另请参阅

SqlHierarchyId 结构
Microsoft.SqlServer.Types 命名空间

返回页首