GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoObject Class / GetPartInfo Method
an IGoPartInfoRenderer from which one can allocate a GoPartInfo
In This Topic
    GetPartInfo Method
    In This Topic
    Return a GoPartInfo that describes this object and that can be transmitted to the client (user agent) as JavaScript data structures that can be used by code running on the client.
    Syntax
    public virtual GoPartInfo GetPartInfo( 
       GoView view,
       IGoPartInfoRenderer renderer
    )

    Parameters

    view
    renderer
    an IGoPartInfoRenderer from which one can allocate a GoPartInfo

    Return Value

    By default this just returns the result of calling IGoPartInfoRenderer.GetStandardPartInfo.
    Remarks
    You may want to override this method in order to add property/value information for each instance of a class. You can either call IGoPartInfoRenderer.CreatePartInfo and set all of its properties as desired, or you can call the base method to get the standard GoPartInfo as produced by the IGoPartInfoRenderer and modify that. However, it may be that the renderer does not normally produce any GoPartInfo for this kind of object, in which case the base method call will return null. You will need to check that return value to decide whether you can modify it or whether you need to call IGoPartInfoRenderer.CreatePartInfo if you still need to return a GoPartInfo.
    See Also