GoDiagram Web Reference
DefineAndGenerateSharedObject Method

an Object; if null this method does nothing
If the given object is not already known to be a shared object, define it and generate it, so that you can use simple ID references to the shared object both during generation and during consumption.
Syntax
'Declaration
 
Public Overridable Sub DefineAndGenerateSharedObject( _
   ByVal obj As Object _
) 
public virtual void DefineAndGenerateSharedObject( 
   object obj
)

Parameters

obj
an Object; if null this method does nothing
Remarks
This convenience method can be called from an override of GenerateDefinitions when there are auxiliary objects that can be shared by the primary Objects but are not in that collection of Objects. If InvokeSkipGeneration returns true, or if the obj is already shared, no element is generated. This method is implemented as:
             if (obj == null)
               return;
             Type t = obj.GetType();
             if (InvokeSkipGeneration(t, obj))
               return;
             String id = FindShared(obj);
             if (id == null) {
               MakeShared(obj);
               DefineObject(obj);
               GenerateObject(obj);
             }
            
Requirements

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

See Also

Reference

GoXmlWriter Class
GoXmlWriter Members

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback