Click or drag to resize

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
Task<OptionsInfo> SupportedFeaturesAsync()

Return Value

Type: TaskOptionsInfo
OptionsInfo object containing information about current server possibilities.
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.");
    Console.WriteLine("Class 1 item. This item does not support locking.");
See Also