Click or drag to resize

IDeltaVItemSetComment Method

IT Hit WebDAV Classes Reference
Sets 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
void SetComment(
	string comment
)

Parameters

comment
Type: SystemString
Comment string.

Return Value

Type: 
.
Exceptions
ExceptionCondition
LockedExceptionThis folder was locked. Client did not provide the lock token.
NeedPrivilegesExceptionThe user doesn't have enough privileges.
InsufficientStorageExceptionQuota limit is reached.
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 void SetComment(string comment)
{
    context.ExecuteNonQuery(
        "UPDATE Version SET Comment = @Comment WHERE VersionId = @VersionId",
        "@VersionId", versionId,
        "@Comment", comment);
}
See Also