Click or drag to resize

IHierarchyItemProperties Property

IT Hit WebDAV Classes Reference
Custom properties retrieved by [!:IFolder.GetChildrenAsync(bool, PropertyName[])] call.

Namespace:  ITHit.WebDAV.Client
Assembly:  ITHit.WebDAV.Client (in ITHit.WebDAV.Client.dll) Version: 6.0.4052-Beta
Syntax
Property[] Properties { get; }

Property Value

Type: Property
Array of custom properties.
Remarks
Use this property together with [!:IFolder.GetChildrenAsync(bool, PropertyName[])] method to retrieve items properties with a single request.
Examples
The following example demonstrates how to get custom properties for all child items with a single request to server.
string license = "<?xml version='1.0' encoding='utf...
WebDavSessionAsync session = new WebDavSessionAsync(license);
session.Credentials = new NetworkCredential("User1", "pwd");

PropertyName[] propNames = new PropertyName[2];
propNames[0] = new PropertyName("MyID", "Sales");
propNames[1] = new PropertyName("Branch", "Sales");

IFolder folder = await session.GetFolderAsync( new Uri("https://server:8080/"));
IHierarchyItem[] children = await folder.GetChildrenAsync(false, propNames);
foreach (IHierarchyItem item in children)
{
    Console.WriteLine(item.DisplayName);
    foreach(Property prop in item.Properties)
    {
        Console.WriteLine(prop.Name.NamespaceUri + ":" + prop.Name.Name + " " + prop.StringValue);
    }
}
See Also