DragDataDirectory Class
A directory of a DragData, with its files and its subdirectories.
public sealed class DragDataDirectory : DragDataEntry- Inheritance
DragDataEntryDragDataDirectory
Properties
| Name | Description |
|---|---|
| Entries | Gets the files and the subdirectories of the directory. |
Entries
DragData.csGets the files and the subdirectories of the directory.
public IReadOnlyList<DragDataEntry> Entries { get; }Property value
Methods
| Name | Description |
|---|---|
| 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.csAdds an empty subdirectory to the directory.
public DragDataDirectory AddDirectory(string name)AddFile(string, ReadOnlyMemory<byte>, string?, DateTimeOffset?)
DragData.csAdds a file to the directory (see DragData.AddFile).
public DragDataFile AddFile(string name, ReadOnlyMemory<byte> content, string? type = null, DateTimeOffset? lastModified = null)AddFromDisk(string)
DragData.csAdds a file or a directory of the disk to the directory (see DragData.AddFromDisk).
public DragDataEntry AddFromDisk(string path)