Click or drag to resize

IDeltaVItemGetComment Method

IT Hit WebDAV Classes Reference
Retrieves a brief comment about a file that is suitable for presentation to a user.

Namespace: ITHit.WebDAV.Server.DeltaV
Assembly: ITHit.WebDAV.Server (in ITHit.WebDAV.Server.dll) Version: 4.5.3121.0
Syntax
string GetComment()

Return Value

Type: String
Comment string.
Exceptions
ExceptionCondition
NeedPrivilegesExceptionThe user doesn't have enough privileges.
DavExceptionIn other cases.
Remarks
Comment can be used to indicate why that version was created.
Examples

The code below is part of 'WebDAVServer.DeltaV' sample provided with the SDK.

public string GetComment()
{
    return context.ExecuteScalar<string>(
        "SELECT Comment FROM Version WHERE VersionId = @VersionId",
        "@VersionId", VersionId);
}
See Also