Show / Hide Table of Contents

Interface ICollection

Represents a WebDAV collection

Inherited Members
IEntry.Name
IEntry.FileSystem
IEntry.Parent
IEntry.Path
IEntry.LastWriteTimeUtc
IEntry.CreationTimeUtc
IEntry.DeleteAsync(CancellationToken)
IEntry.SetLastWriteTimeUtcAsync(DateTime, CancellationToken)
IEntry.SetCreationTimeUtcAsync(DateTime, CancellationToken)
Namespace:FubarDev.WebDavServer.FileSystem
Assembly:FubarDev.WebDavServer.dll
Syntax
public interface ICollection : IEntry

Methods

| Improve this Doc View Source

CreateCollectionAsync(String, CancellationToken)

Creates a child collection

Declaration
[NotNull]
[ItemNotNull]
Task<ICollection> CreateCollectionAsync([NotNull] string name, CancellationToken ct)
Parameters
Type Name Description
String name

The name of the new collection

CancellationToken ct

The cancellation token

Returns
Type Description
Task<ICollection>

The new collection

| Improve this Doc View Source

CreateDocumentAsync(String, CancellationToken)

Creates a document with the given name

Declaration
[NotNull]
[ItemNotNull]
Task<IDocument> CreateDocumentAsync([NotNull] string name, CancellationToken ct)
Parameters
Type Name Description
String name

The name of the new document

CancellationToken ct

The cancellation token

Returns
Type Description
Task<IDocument>

The created document

| Improve this Doc View Source

GetChildAsync(String, CancellationToken)

Gets the child entry with the given name

Declaration
[NotNull]
[ItemCanBeNull]
Task<IEntry> GetChildAsync([NotNull] string name, CancellationToken ct)
Parameters
Type Name Description
String name

The name of the child entry to get

CancellationToken ct

The cancellation token

Returns
Type Description
Task<IEntry>

The found entry (or null)

| Improve this Doc View Source

GetChildrenAsync(CancellationToken)

Gets all child entries

Declaration
[NotNull]
[ItemNotNull]
Task<IReadOnlyCollection<IEntry>> GetChildrenAsync(CancellationToken ct)
Parameters
Type Name Description
CancellationToken ct

The cancellation token

Returns
Type Description
Task<IReadOnlyCollection<IEntry>>

The found entries

Extension Methods

CollectionExtensions.GetMountTargetAsync(ICollection, IMountPointProvider)
CollectionExtensions.GetMountTargetEntryAsync(ICollection, IMountPointProvider)
CollectionExtensions.EnumerateEntries(ICollection, IReadOnlyCollection<IEntry>, Int32)
CollectionExtensions.EnumerateEntries(ICollection, Int32)
CollectionExtensions.GetNodeAsync(ICollection, Int32, CancellationToken)
EntryExtensions.GetEntityTagAsync(IEntry, CancellationToken)
EntryExtensions.GetProperties(IEntry, IWebDavDispatcher, Nullable<Int32>, Boolean)
EntryExtensions.GetResourceTypeProperty(IEntry)
  • Improve this Doc
  • View Source
Back to top Copyright © 2016-2017 Fubar Development Junker
Generated by DocFX