IHierarchyItem.GetAllProperties Method 

IT Hit WebDAV for .NET

Retrieves all custom properties exposed by the item.

[Visual Basic]
Function GetAllProperties() As Property()
[C#]
Property[] GetAllProperties();

Remarks

This method returns the array of custom properties exposed by the item.

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");
 IResource resource = session.OpenResource(new Uri("https://server/Library/doc.txt"));

 Property[] properties = resource.GetAllProperties();
 foreach(Property prop in properties)
 {
    Console.WriteLine(prop.Name.NamespaceUri + ":" + prop.Name.Name + " " + prop.StringValue);
 }
 

See Also

IHierarchyItem Interface | ITHit.WebDAV.Client Namespace