# Version comments for a Documentum object

- Link: https://saguiitay.com/version-comments-for-a-documentum-object/
- Published: 2009-01-08T11:34:00+02:00
- Author: Itay

Retrieving the version comments of a Documentum SysObject is an easy task:

    ```notranslate
    private static string GetVersionsComment(IDfSysObject dfObj)
    {
        StringBuilder sb = new StringBuilder();
        if (dfObj.getVersionLabelCount()  0)
        {
            for (int i = 0; i  dfObj.getVersionLabelCount(); i++)
            {
                string versionLabel = dfObj.getVersionLabel(i);
                sb.AppendLine(versionLabel);
            }
            sb.AppendLine(dfObj.getLogEntry());
        }
        return sb.ToString().Trim();
    }
    ```

### _Related_
