Interface ICollectionTarget<TCollection, TDocument, TMissing>
Interface for a target that's a collection
Inherited Members
Namespace:FubarDev.WebDavServer.Engines
Assembly:FubarDev.WebDavServer.dll
Syntax
public interface ICollectionTarget<TCollection, TDocument, TMissing> : IExistingTarget, ITarget where TCollection : class, ICollectionTarget<TCollection, TDocument, TMissing> where TDocument : class, IDocumentTarget<TCollection, TDocument, TMissing> where TMissing : class, IMissingTarget<TCollection, TDocument, TMissing>
Type Parameters
Name | Description |
---|---|
TCollection | The interface type for a collection target |
TDocument | The interface type for a document target |
TMissing | The interface type for a missing target |
Properties
| Improve this Doc View SourceCreated
Gets a value indicating whether the collection was created by the RecursiveExecutionEngine<TCollection, TDocument, TMissing>
Declaration
bool Created { get; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
| Improve this Doc View SourceDeleteAsync(CancellationToken)
Delete the collection target
Declaration
[NotNull]
[ItemNotNull]
Task<TMissing> DeleteAsync(CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | The cancellation token |
Returns
Type | Description |
---|---|
Task<TMissing> | The collection that's now a missing target (because it was deleted by this function) |
GetAsync(String, CancellationToken)
Gets a child target
Declaration
[NotNull]
[ItemNotNull]
Task<ITarget> GetAsync([NotNull] string name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
String | name | The name of the child element |
CancellationToken | cancellationToken | The cancellation token |
Returns
Type | Description |
---|---|
Task<ITarget> | The target which might be missing or a collection or document |
NewMissing(String)
Creates a missing child element with the given name
Declaration
[NotNull]
TMissing NewMissing([NotNull] string name)
Parameters
Type | Name | Description |
---|---|---|
String | name | The name of the new child element |
Returns
Type | Description |
---|---|
TMissing | The missing target |