Interface ICollection
Represents a WebDAV collection
Inherited Members
Namespace:FubarDev.WebDavServer.FileSystem
Assembly:FubarDev.WebDavServer.dll
Syntax
public interface ICollection : IEntry
Methods
| Improve this Doc View SourceCreateCollectionAsync(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 |
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 |
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 |
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 |