Harness proD API Help
EPLAN.Harness.API.Projects.Documents Namespace / RevisionableDocument Class / HasRevision Property
In This Topic
    HasRevision Property
    In This Topic
    Does this document have a revision?
    Syntax
    public bool HasRevision {get;}
    Exceptions
    ExceptionDescription
    The object is in invalid state. Obtain a new one.

    Internal error of HpD or HpD API.

    IMPORTANT: Throwing this exception changes HpD Api's state to Failed.

    Remarks

    If this document has revisions, you can access them using Revisions property.

    Note the difference: IsRevision tells you that this document is a revision of another document, so it can be promoted (using the Promote method). HasRevision on the other hand means that this document is revisioned - has revisions that can be accessed with the Revisions property.

    See Also