IFileVersionControlled Property
IT Hit WebDAV Classes Reference Provides information whether item is under version control.
Namespace:
ITHit.WebDAV.Client
Assembly:
ITHit.WebDAV.Client (in ITHit.WebDAV.Client.dll) Version: 6.0.4052-Beta
Syntax bool VersionControlled { get; }
ReadOnly Property VersionControlled As Boolean
Get
property bool VersionControlled {
bool get ();
}
abstract VersionControlled : bool with get
Property Value
Type:
BooleanBoolean value indicating if item is being version-controlled.
Remarks
Returns true if item is under version control. Otherwise returns false.
Examples
The following example demonstrates how to find out if item is being version-controlled.
string license = "<?xml version='1.0' encoding='utf...
WebDavSessionAsync session = new WebDavSessionAsync(license);
session.Credentials = new NetworkCredential("User1", "pwd");
IFile file = await session.GetFileAsync(new Uri("https://server/directory/file.docx"));
if(file.VersionControlled)
MessageBox.Show("The item is being version controlled.");
else
MessageBox.Show("The item is not under version control.");
See Also