Skip to content
This repository has been archived by the owner on Feb 14, 2022. It is now read-only.

Commit

Permalink
Updated documentation and changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
DecaTec committed Dec 5, 2016
1 parent 40fb5a3 commit 88c912f
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,21 @@ foreach (var item in items)
}
]]>
</code>
<para>
By default, WebDavSession uses a so called allprop when listing the contents of a folder. The WebDAV server should return all known properties. Which properties are returned
depends on the WebDAV server. If not all of the expected properties are returned or you only need a subset of all known properties, you can specify another PropFind type when calling ListAsync:
</para>
<code language="c#">
<![CDATA[
var propFind = PropFind.CreatePropFindWithEmptyProperties(PropNameConstants.IsHidden, PropNameConstants.DisplayName, PropNameConstants.Name, PropNameConstants.GetContentType, PropNameConstants.CreationDate, PropNameConstants.ResourceType, PropNameConstants.GetLastModified, PropNameConstants.GetContentLength);
var items = await webDavSession.ListAsync(@"MyFolder/", propFind);
foreach (var item in items)
{
// Handle the response (list of WebDavSessionListItems); only the properties specified with propFind should be returned by the server.
}
]]>
</code>

<para>
<legacyBold>WebDavClient</legacyBold>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@

<listItem>
<para>
New overloads for WebDavSession.ListAsync where a PropFind can be specified.
New overloads for WebDavSession.ListAsync where a PropFind can be specified (e.g. PropFind.CreatePropFindWithEmptyPropertiesAll()).
</para>
</listItem>

<listItem>
<para>
Updated and improved documentation.
</para>
</listItem>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,21 @@ foreach (var item in items)
}
]]>
</code>
<para>
By default, WebDavSession uses a so called allprop when listing the contents of a folder. The WebDAV server should return all known properties. Which properties are returned
depends on the WebDAV server. If not all of the expected properties are returned or you only need a subset of all known properties, you can specify another PropFind type when calling ListAsync:
</para>
<code language="c#">
<![CDATA[
var propFind = PropFind.CreatePropFindWithEmptyProperties(PropNameConstants.IsHidden, PropNameConstants.DisplayName, PropNameConstants.Name, PropNameConstants.GetContentType, PropNameConstants.CreationDate, PropNameConstants.ResourceType, PropNameConstants.GetLastModified, PropNameConstants.GetContentLength);
var items = await webDavSession.ListAsync(@"MyFolder/", propFind);
foreach (var item in items)
{
// Handle the response (list of WebDavSessionListItems); only the properties specified with propFind should be returned by the server.
}
]]>
</code>

<para>
<legacyBold>WebDavClient</legacyBold>
Expand Down

0 comments on commit 88c912f

Please sign in to comment.