Northwoods.Go.Xml Assembly > Northwoods.Go.Xml Namespace > GoXmlTransformer Class : GeneratesPortsAsChildElements Property |
IGoPort
), if this transformer is operating on an IGoNode
.'Declaration Public Property GeneratesPortsAsChildElements As Boolean
public bool GeneratesPortsAsChildElements {get; set;}
Setting this property to true will cause GenerateDefinitions to enumerate all of the IGoPort
s for the given IGoNode
(assuming the argument object indeed implements IGoNode
) and call GoXmlWriter.DefineObject on each port. A true value will also cause GenerateBody to enumerate all the ports and call GoXmlWriter.GenerateObject on each one.
Note that this property only affects generation. Typically you will also want to set BodyConsumesChildElements to true and override ConsumeChild to add the port to be a child of this parent node.
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