ParentAdapter.IsParent Method
Gets a value indicating whether the specified child item is a child of the specified parent item.
Namespace: Microsoft.Windows.Design.Interaction
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public Overridable Function IsParent ( _
parent As ModelItem, _
child As ModelItem _
) As Boolean
public virtual bool IsParent(
ModelItem parent,
ModelItem child
)
public:
virtual bool IsParent(
ModelItem^ parent,
ModelItem^ child
)
abstract IsParent :
parent:ModelItem *
child:ModelItem -> bool
override IsParent :
parent:ModelItem *
child:ModelItem -> bool
public function IsParent(
parent : ModelItem,
child : ModelItem
) : boolean
Parameters
- parent
Type: Microsoft.Windows.Design.Model.ModelItem
The parent item.
- child
Type: Microsoft.Windows.Design.Model.ModelItem
The child item.
Return Value
Type: System.Boolean
true if child is a child item of parent; otherwise, false.
Remarks
The IsParent method is used to determine whether the CanParent method should be called. The default implementation checks the Parent property of child.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.Interaction Namespace