Click or drag to resize

IHierarchyItemSupportedFeaturesAsync 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: 6.0.4052-Beta
Syntax
Task<OptionsInfo> SupportedFeaturesAsync()

Return Value

Type: TaskOptionsInfo
OptionsInfo object containing information about current server possibilities.
Examples
string license = "<?xml version='1.0' encoding='utf...
WebDavSession session = new WebDavSession(license);
session.Credentials = new NetworkCredential("User1", "pwd");
IHierarchyItem item = await session.GetFileAsync(new Uri("https://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