WebDavSessionGetChildrenAsync Method
IT Hit WebDAV Classes Reference
Enumerates children of the specified folder.
Namespace:
ITHit.WebDAV.Client
Assembly:
ITHit.WebDAV.Client (in ITHit.WebDAV.Client.dll) Version: 6.0.4052-Beta
Syntax public Task<IHierarchyItem[]> GetChildrenAsync(
Uri folder,
bool recursively = false,
PropertyName[] names = null,
IDictionary<string, string> headers = null,
CancellationToken cancellationToken = null
)
Public Function GetChildrenAsync (
folder As Uri,
Optional recursively As Boolean = false,
Optional names As PropertyName() = Nothing,
Optional headers As IDictionary(Of String, String) = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of IHierarchyItem())
public:
Task<array<IHierarchyItem^>^>^ GetChildrenAsync(
Uri^ folder,
bool recursively = false,
array<PropertyName^>^ names = nullptr,
IDictionary<String^, String^>^ headers = nullptr,
CancellationToken cancellationToken = nullptr
)
member GetChildrenAsync :
folder : Uri *
?recursively : bool *
?names : PropertyName[] *
?headers : IDictionary<string, string> *
?cancellationToken : CancellationToken
(* Defaults:
let _recursively = defaultArg recursively false
let _names = defaultArg names null
let _headers = defaultArg headers null
let _cancellationToken = defaultArg cancellationToken null
*)
-> Task<IHierarchyItem[]>
Parameters
- folder
- Type: SystemUri
Folder to enumerate children. - recursively (Optional)
- Type: SystemBoolean
Indicates if all subtree of children should be returned. - names (Optional)
- Type: ITHit.WebDAV.ClientPropertyName
Properties that will be requested form server for each item returned by this method. - headers (Optional)
- Type: System.Collections.GenericIDictionaryString, String
Request headers. - cancellationToken (Optional)
- Type: System.ThreadingCancellationToken
Propagates notification that operations should be canceled.
Return Value
Type:
TaskIHierarchyItemArray of child folders and files.
See Also