ViewItem.IsDescendantOf 方法 (ViewItem)
确定可视对象是否为上级可视对象的后代。
命名空间: Microsoft.Windows.Design.Interaction
程序集: Microsoft.Windows.Design.Interaction(在 Microsoft.Windows.Design.Interaction.dll 中)
语法
声明
Public MustOverride Function IsDescendantOf ( _
ancestor As ViewItem _
) As Boolean
public abstract bool IsDescendantOf(
ViewItem ancestor
)
public:
virtual bool IsDescendantOf(
ViewItem^ ancestor
) abstract
abstract IsDescendantOf :
ancestor:ViewItem -> bool
public abstract function IsDescendantOf(
ancestor : ViewItem
) : boolean
参数
- ancestor
类型:Microsoft.Windows.Design.Interaction.ViewItem
要测试其上级关系的 ViewItem。
返回值
类型:System.Boolean
如果 ViewItem 是 ancestor 的后代,则为 true;否则为 false。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。