Class DocumentTarget
The local file system document target
Inherited Members
Namespace:FubarDev.WebDavServer.Engines.Local
Assembly:FubarDev.WebDavServer.dll
Syntax
public class DocumentTarget : EntryTarget, IDocumentTarget<CollectionTarget, DocumentTarget, MissingTarget>, IExistingTarget, ITarget
Constructors
| Improve this Doc View SourceDocumentTarget(CollectionTarget, Uri, IDocument, ITargetActions<CollectionTarget, DocumentTarget, MissingTarget>)
Initializes a new instance of the DocumentTarget class.
Declaration
public DocumentTarget([NotNull] CollectionTarget parent, [NotNull] Uri destinationUrl, [NotNull] IDocument document, [NotNull] ITargetActions<CollectionTarget, DocumentTarget, MissingTarget> targetActions)
Parameters
Type | Name | Description |
---|---|---|
CollectionTarget | parent | The parent collection |
Uri | destinationUrl | The destination URL for this collection |
IDocument | document | The underlying document |
ITargetActions<CollectionTarget, DocumentTarget, MissingTarget> | targetActions | The target actions implementation to use |
Properties
| Improve this Doc View SourceDocument
Gets the underlying document
Declaration
[NotNull]
public IDocument Document { get; }
Property Value
Type | Description |
---|---|
IDocument |
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 SourceNewInstance(Uri, IDocument, ITargetActions<CollectionTarget, DocumentTarget, MissingTarget>)
Creates a new instance of the DocumentTarget class.
Declaration
[NotNull]
public static DocumentTarget NewInstance([NotNull] Uri destinationUrl, [NotNull] IDocument document, [NotNull] ITargetActions<CollectionTarget, DocumentTarget, MissingTarget> targetActions)
Parameters
Type | Name | Description |
---|---|---|
Uri | destinationUrl | The destination URL for this document |
IDocument | document | The underlying document |
ITargetActions<CollectionTarget, DocumentTarget, MissingTarget> | targetActions | The target actions implementation to use |
Returns
Type | Description |
---|---|
DocumentTarget | The created document target object |