IHierarchyItemSupportedFeatures 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 OptionsInfo SupportedFeatures()
Function SupportedFeatures As OptionsInfo
OptionsInfo^ SupportedFeatures()
abstract SupportedFeatures : unit -> OptionsInfo
Return Value
Type:
OptionsInfoOptionsInfo 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 = session.OpenFile(new Uri("http://server:8580/Products/Sales.txt"));
if( ((item.SupportedFeatures()).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