IFileAsyncIsVersionControlledAsync Method
IT Hit WebDAV Classes Reference Note: This API is now obsolete.
Determines whether item is under version control.
Namespace:
ITHit.WebDAV.Client
Assembly:
ITHit.WebDAV.Client (in ITHit.WebDAV.Client.dll) Version: 2.0.420.0
Syntax [ObsoleteAttribute]
Task<bool> IsVersionControlledAsync()
<ObsoleteAttribute>
Function IsVersionControlledAsync As Task(Of Boolean)
[ObsoleteAttribute]
Task<bool>^ IsVersionControlledAsync()
[<ObsoleteAttribute>]
abstract IsVersionControlledAsync : unit -> Task<bool>
Return Value
Type:
TaskBooleanBoolean 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");
IFileAsync file = await session.OpenFileAsync(new Uri("http://server/directory/file.docx"));
if(await file.IsVersionControlledAsync())
MessageBox.Show("The item is being version controlled.");
else
MessageBox.Show("The item is not under version control.");
See Also