GoDigram for .NET Framework and .NET Core
Northwoods.Go.Xml Namespace / GoXmlTransformer Class / IdAttributeUsedForSharedObjects Property
In This Topic
    IdAttributeUsedForSharedObjects Property
    In This Topic
    Gets or sets whether this transformer reads/writes the "id" attribute using the identifier associated with shared objects.
    Syntax
    public bool IdAttributeUsedForSharedObjects {get; set;}

    Property Value

    The initial value is false.
    Remarks
    Setting this property to true will cause GenerateDefinitions to call GoXmlWriter.MakeShared in order to associate an identifier with the object, and it will cause GenerateAttributes to write out an "id" attribute whose value is that identifier, as returned by GoXmlWriter.FindShared. When reading, ConsumeAttributes will look at the value of the "id" attribute of the current element and (if present) will call MakeShared to associate that identifier with the object. Your reading code can then call FindShared to try to resolve an identifier into a reference.
    See Also