IHierarchyItem.GetPropertyNames Method 

IT Hit WebDAV for .NET

Returns names of all custom properties exposed by this item.

[Visual Basic]
Function GetPropertyNames() As PropertyName()
[C#]
PropertyName[] GetPropertyNames();

Exceptions

Exception Type Condition
NotFoundException This item doesn't exist on the server.
WebDavHttpException Server returned unknown error.
WebDavException Unexpected error occurred.

Example

 string license = "<?xml version='1.0' encoding='utf...
 WebDavSession session = new WebDavSession(license);
 session.Credentials = new NetworkCredential("User1", "pwd", "DOMAIN");

 IHierarchyItem item = session.OpenResource(new Uri("https://server/Library/doc.txt"));
 PropertyName[] names = item.GetPropertyNames();
 foreach (PropertyName name in names)
 {
    Console.WriteLine(name);
 }
 

See Also

IHierarchyItem Interface | ITHit.WebDAV.Client Namespace