Show / Hide Table of Contents

Interface IDocument

The document of a 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 IDocument : IEntry

Properties

| Improve this Doc View Source

Length

Gets the length of the document

Declaration
long Length { get; }
Property Value
Type Description
Int64

Methods

| Improve this Doc View Source

CopyToAsync(ICollection, String, CancellationToken)

Copies the document to a new location within the same file system

Declaration
[NotNull]
[ItemNotNull]
Task<IDocument> CopyToAsync([NotNull] ICollection collection, [NotNull] string name, CancellationToken cancellationToken)
Parameters
Type Name Description
ICollection collection

The destination collection

String name

The new name of the document

CancellationToken cancellationToken

The cancellation token

Returns
Type Description
Task<IDocument>

The created document

| Improve this Doc View Source

CreateAsync(CancellationToken)

Overwrites the document

Declaration
[NotNull]
[ItemNotNull]
Task<Stream> CreateAsync(CancellationToken cancellationToken)
Parameters
Type Name Description
CancellationToken cancellationToken

The cancellation token

Returns
Type Description
Task<Stream>

The stream used to write to the document

| Improve this Doc View Source

MoveToAsync(ICollection, String, CancellationToken)

Moves the document to a new location within the same file system

Declaration
[NotNull]
[ItemNotNull]
Task<IDocument> MoveToAsync([NotNull] ICollection collection, [NotNull] string name, CancellationToken cancellationToken)
Parameters
Type Name Description
ICollection collection

The destination collection

String name

The new name of the document

CancellationToken cancellationToken

The cancellation token

Returns
Type Description
Task<IDocument>

The created document

| Improve this Doc View Source

OpenReadAsync(CancellationToken)

Opens the document for reading

Declaration
[NotNull]
[ItemNotNull]
Task<Stream> OpenReadAsync(CancellationToken cancellationToken)
Parameters
Type Name Description
CancellationToken cancellationToken

The cancellation token

Returns
Type Description
Task<Stream>

The stream used to read the document

Extension Methods

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