Namespace: ITHit.WebDAV.Client
The IPropertyMultistatusResponse type exposes the following members.
Name | Description | |
---|---|---|
Description |
Description of error, if available.
(Inherited from IMultistatusResponse.) | |
Href |
Url of the item.
(Inherited from IMultistatusResponse.) | |
PropertyName |
Name of the property, if element is property. Otherwise null.
| |
Status |
HTTP Status of the operation.
(Inherited from IMultistatusResponse.) |
string license = "<?xml version='1.0' encoding='utf... WebDavSession session = new WebDavSession(license); session.Credentials = new NetworkCredential("User1", "pwd"); IFile file = await session.GetFileAsync(new Uri("https://server/Library/doc.txt")); Property[] propsToAddAndUpdate = new Property[3]; propsToAddAndUpdate[0] = new Property(new PropertyName("Ammount", "CorpNS"), "1200"); propsToAddAndUpdate[1] = new Property(new PropertyName("ManagerApproved", "Sales"), "Yes"); propsToAddAndUpdate[2] = new Property(new PropertyName("Branch", "Sales"), "EMEA Region"); PropertyName[] propsToDelete = new PropertyName[2]; propsToDelete[0] = new PropertyName("InternalName", "Sales"); propsToDelete[1] = new PropertyName("Counter", "CorpNS"); try { await file.UpdatePropertiesAsync(propsToAddAndUpdate, propsToDelete); } catch(PropertyException ex) { // Find which properties failed to add/update/delete foreach(IPropertyMultistatusResponse propInfo in ex.Multistatus.Responses) { Console.WriteLine(propInfo.PropertyName + " " + propInfo.Description); } }