Click or drag to resize

IHierarchyItemAsyncGetPropertyNamesAsync Method

IT Hit WebDAV Classes Reference
Returns names of all custom properties exposed by this item.

Namespace:  ITHit.WebDAV.Client
Assembly:  ITHit.WebDAV.Client (in ITHit.WebDAV.Client.dll) Version: 2.0.420.0
Syntax
Task<PropertyName[]> GetPropertyNamesAsync()

Return Value

Type: TaskPropertyName

[Missing <returns> documentation for "M:ITHit.WebDAV.Client.IHierarchyItemAsync.GetPropertyNamesAsync"]

Exceptions
ExceptionCondition
NotFoundExceptionThis item doesn't exist on the server.
WebDavHttpExceptionServer returned unknown error.
WebDavExceptionUnexpected error occurred.
Examples
string license = "<?xml version='1.0' encoding='utf...
WebDavSessionAsync session = new WebDavSessionAsync(license);
session.Credentials = new NetworkCredential("User1", "pwd", "DOMAIN");

IHierarchyItemAsync item = await session.OpenFileAsync(new Uri("https://server/Library/doc.txt"));
PropertyName[] names = await item.GetPropertyNamesAsync();
foreach (PropertyName name in names)
{
   Console.WriteLine(name);
}
See Also