Click or drag to resize

IHierarchyItemAsyncGetAllPropertiesAsync Method

IT Hit WebDAV Classes Reference
Retrieves all custom properties exposed by the item.

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

Return Value

Type: TaskProperty

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

Exceptions
ExceptionCondition
NotFoundExceptionThis item doesn't exist on the server.
WebDavHttpExceptionServer returned unknown error.
WebDavExceptionUnexpected error occurred.
Remarks
This method returns the array of custom properties exposed by the item.
Examples
string license = "<?xml version='1.0' encoding='utf...
WebDavSessionAsync session = new WebDavSessionAsync(license);
session.Credentials = new NetworkCredential("User1", "pwd");
IFileAsync file = await session.OpenFileAsync(new Uri("https://server/Library/doc.txt"));

Property[] properties = await file.GetAllPropertiesAsync();
foreach(Property prop in properties)
{
   Console.WriteLine(prop.Name.NamespaceUri + ":" + prop.Name.Name + " " + prop.StringValue);
}
See Also