Class CollectionTarget
The local file system collection target
Inherited Members
Namespace:FubarDev.WebDavServer.Engines.Local
Assembly:FubarDev.WebDavServer.dll
Syntax
public class CollectionTarget : EntryTarget, ICollectionTarget<CollectionTarget, DocumentTarget, MissingTarget>, IExistingTarget, ITarget
Constructors
| Improve this Doc View SourceCollectionTarget(Uri, CollectionTarget, ICollection, Boolean, ITargetActions<CollectionTarget, DocumentTarget, MissingTarget>)
Initializes a new instance of the CollectionTarget class.
Declaration
public CollectionTarget([NotNull] Uri destinationUrl, [CanBeNull] CollectionTarget parent, [NotNull] ICollection collection, bool created, [NotNull] ITargetActions<CollectionTarget, DocumentTarget, MissingTarget> targetActions)
Parameters
Type | Name | Description |
---|---|---|
Uri | destinationUrl | The destination URL for this collection |
CollectionTarget | parent | The parent collection |
ICollection | collection | The underlying collection |
Boolean | created | Was this collection created by the RecursiveExecutionEngine<TCollection, TDocument, TMissing> |
ITargetActions<CollectionTarget, DocumentTarget, MissingTarget> | targetActions | The target actions implementation to use |
Properties
| Improve this Doc View SourceCollection
Gets the underlying collection
Declaration
[NotNull]
public ICollection Collection { get; }
Property Value
Type | Description |
---|---|
ICollection |
Created
Declaration
public bool Created { get; }
Property Value
Type | Description |
---|---|
Boolean |
Implements
Methods
| Improve this Doc View SourceDeleteAsync(CancellationToken)
Declaration
public Task<MissingTarget> DeleteAsync(CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<MissingTarget> |
Implements
| Improve this Doc View SourceGetAsync(String, CancellationToken)
Declaration
public Task<ITarget> GetAsync(string name, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
String | name | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<ITarget> |
Implements
| Improve this Doc View SourceNewInstance(Uri, ICollection, ITargetActions<CollectionTarget, DocumentTarget, MissingTarget>)
Creates a new instance of the CollectionTarget class.
Declaration
[NotNull]
public static CollectionTarget NewInstance([NotNull] Uri destinationUrl, [NotNull] ICollection collection, [NotNull] ITargetActions<CollectionTarget, DocumentTarget, MissingTarget> targetActions)
Parameters
Type | Name | Description |
---|---|---|
Uri | destinationUrl | The destination URL for this collection |
ICollection | collection | The underlying collection |
ITargetActions<CollectionTarget, DocumentTarget, MissingTarget> | targetActions | The target actions implementation to use |
Returns
Type | Description |
---|---|
CollectionTarget | The created collection target object |
NewMissing(String)
Declaration
public MissingTarget NewMissing(string name)
Parameters
Type | Name | Description |
---|---|---|
String | name |
Returns
Type | Description |
---|---|
MissingTarget |