次の方法で共有


SqlHierarchyId.IsDescendantOf メソッド

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 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 です。parent をルートとするサブツリー内のすべてのノードには true (1) 、それ以外のノードには false (0) を返します。

説明

parent はそれ自身の子孫と見なされます。

関連項目

参照

SqlHierarchyId 構造体

Microsoft.SqlServer.Types 名前空間