Get and Set a Property Indicating if this Object should be Kept as a Root Object when being set as the Target of a Reference.
[Visual Basic]
Public Property _KeepAsRoot As Boolean [C#]
public bool _KeepAsRoot {get; set;}[JScript]
public function get,set _KeepAsRoot : boolean When an Object that is a Root Object (does not have a Parent Reference) is set as the Target of a Reference, the Objects Parent Reference is set. If you wish to keep this Object as a Root Object (not have its Parent Reference set) then set this Property to True, then when this Object is set as the Target of a Reference a Clone will be made of this Object and that will be used instead.
If the property is set to True and this Object is not a Root Object (does have a Parent Reference) then an Exception will be thrown.
ConstructorClass Class | ConstructorClass Members
©2006 i3 Design Limited. All rights reserved.