Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Changes the parent of an object to another parent.
Namespace: Microsoft.Windows.Design.Interaction
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public MustOverride Sub Parent ( _
newParent As ModelItem, _
child As ModelItem _
)
public abstract void Parent(
ModelItem newParent,
ModelItem child
)
public:
virtual void Parent(
ModelItem^ newParent,
ModelItem^ child
) abstract
abstract Parent :
newParent:ModelItem *
child:ModelItem -> unit
public abstract function Parent(
newParent : ModelItem,
child : ModelItem
)
Parameters
- newParent
Type: Microsoft.Windows.Design.Model.ModelItem
The new parent item for child.
- child
Type: Microsoft.Windows.Design.Model.ModelItem
The child item.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | newParent or child is nulla null reference (Nothing in Visual Basic). |
Remarks
Use Parent to set up parent-child relationships.
.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