IFileIsCheckedOutAsync Method
IT Hit WebDAV Classes Reference Note: This API is now obsolete.
Determines whether item is in checked-in or checked-out state.
Namespace:
ITHit.WebDAV.Client
Assembly:
ITHit.WebDAV.Client (in ITHit.WebDAV.Client.dll) Version: 6.0.4052-Beta
Syntax [ObsoleteAttribute]
Task<bool> IsCheckedOutAsync()
<ObsoleteAttribute>
Function IsCheckedOutAsync As Task(Of Boolean)
[ObsoleteAttribute]
Task<bool>^ IsCheckedOutAsync()
[<ObsoleteAttribute>]
abstract IsCheckedOutAsync : unit -> Task<bool>
Return Value
Type:
TaskBooleanBoolean value indicating if item is in checked-out state.
Exceptions Examples
The following example demonstrates how to find out if item is in checked-out state.
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 (await file.IsCheckedOutAsync())
MessageBox.Show("The item is checked-out.");
else
MessageBox.Show("The item is checked-in.");
See Also