Northwoods.GoWeb Assembly > Northwoods.GoWeb Namespace > GoObject Class : CopyObjectDelayed Method |
'Declaration Public Overridable Sub CopyObjectDelayed( _ ByVal env As GoCopyDictionary, _ ByVal newobj As GoObject _ )
public virtual void CopyObjectDelayed( GoCopyDictionary env, GoObject newobj )
This method need only be overridden by objects that refer to other independent objects. The problem usually is that during the call to CopyObject, some of the objects that this object refers to might not yet have been copied. So it's best to add this object to the GoCopyDictionary.Delayeds collection in the call to CopyObject, and then fix things up during the second pass in the call to this method.
For most objects, this method just adds the new observers that are copies of any old observers of this object. For GoLinks, however, it also makes sure both ports refer to the copied ports, and if the ports were not copied, it removes the link.
The base method should be called by any override that you define. You should not be calling this method from other code; normally only GoCopyDictionary.FinishDelayedCopies is the caller.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2