IHierarchyItemAsyncSupportedFeaturesAsync Method
IT Hit WebDAV Classes Reference
Gets the information about functionality supported by server (Class 1, Class 2 and so on).
Namespace:
ITHit.WebDAV.Client
Assembly:
ITHit.WebDAV.Client (in ITHit.WebDAV.Client.dll) Version: 2.0.420.0
Syntax Task<OptionsInfo> SupportedFeaturesAsync()
Function SupportedFeaturesAsync As Task(Of OptionsInfo)
Task<OptionsInfo^>^ SupportedFeaturesAsync()
abstract SupportedFeaturesAsync : unit -> Task<OptionsInfo>
Return Value
Type:
TaskOptionsInfoOptionsInfo object containing information about current server possibilities.
Examples string license = "<?xml version='1.0' encoding='utf...
WebDavSessionAsync session = new WebDavSessionAsync(license);
session.Credentials = new NetworkCredential("User1", "pwd");
IHierarchyItemAsync item = await session.OpenFileAsync(new Uri("http://server:8580/Products/Sales.txt"));
if( ((await item.SupportedFeaturesAsync()).Features & Features.Class2)!=0 )
Console.WriteLine("Class 2 item. This item supports locking.");
else
Console.WriteLine("Class 1 item. This item does not support locking.");
See Also