DragDataDirectory Class

A directory of a DragData, with its files and its subdirectories.

public sealed class DragDataDirectory : DragDataEntry
Inheritance
DragDataEntry DragDataDirectory

Properties

NameDescription
EntriesGets the files and the subdirectories of the directory.

Gets the files and the subdirectories of the directory.

public IReadOnlyList<DragDataEntry> Entries { get; }

Methods

NameDescription
AddDirectory(string)Adds an empty subdirectory to the directory.
AddFile(string, ReadOnlyMemory<byte>, string?, DateTimeOffset?)Adds a file to the directory (see DragData.AddFile).
AddFromDisk(string)Adds a file or a directory of the disk to the directory (see DragData.AddFromDisk).

AddDirectory(string)

DragData.cs

Adds an empty subdirectory to the directory.

public DragDataDirectory AddDirectory(string name)

Parameters

name string

Returns

DragDataDirectory

AddFile(string, ReadOnlyMemory<byte>, string?, DateTimeOffset?)

DragData.cs

Adds a file to the directory (see DragData.AddFile).

public DragDataFile AddFile(string name, ReadOnlyMemory<byte> content, string? type = null, DateTimeOffset? lastModified = null)

Parameters

name string
content ReadOnlyMemory<byte>
type string?
lastModified DateTimeOffset?

Returns

DragDataFile

AddFromDisk(string)

DragData.cs

Adds a file or a directory of the disk to the directory (see DragData.AddFromDisk).

public DragDataEntry AddFromDisk(string path)

Parameters

path string

Returns

DragDataEntry