IFileSystemLink

Namespace: TagBites.IO
Assembly: TagBites.IO.dll

Provides a mechanism for linking to the file/directory/file version.

public abstract interface IFileSystemLink

Properties

Gets a value indicating whether the file/directory/file version can be read.

public bool CanRead { get; }

Result Type: bool

Gets a value indicating whether the file/directory/file version can be written.

public bool CanWrite { get; }

Result Type: bool

Gets the creation time of the file/directory/file version. <returns>The creation time of the file/directory/file version.</returns>

public DateTime? CreationTime { get; }

Result Type: DateTime?<DateTime>

Gets a value indicating whether the file/directory/file version exists.

public bool Exists { get; }

Result Type: bool

Gets a file system to which the the file/directory/file version belongs. <returns>A TagBites.IO.FileSystem> object representing file system to which the the file/directory/file version belongs.</returns>

public FileSystem FileSystem { get; }

Result Type: FileSystem

Gets the full path of the file/directory/file version. <returns>A System.String containing the full path of the directory/file/file version.</returns>

public string FullName { get; }

Result Type: string

Gets a value indicating whether the file/directory/file version is read only. <returns><see langword="true" /> if the file/directory/file version is read only; otherwise, <see langword="false" />.</returns>

public bool IsReadOnly { get; }

Result Type: bool

Gets the time when the current file/directory/file version was last modified.

public DateTime? ModifyTime { get; }

Result Type: DateTime?<DateTime>

For files, gets the name of the file/file version. For directories, gets the name of the last directory in the hierarchy if a hierarchy exists. Otherwise, the <see langword="Name" /> property gets the name of the directory.

public string Name { get; }

Result Type: string

Gets the type of file system link. <returns>A TagBites.IO.FileSystemLinkType value defines whether the link is associated with file, directory or file version.</returns>

public FileSystemLinkType Type { get; }

Result Type: FileSystemLinkType

Methods

Deletes the file/directory/file version.

public void Delete()

Result Type: void

Asynchronously deletes the file/directory/file version.

public Task DeleteAsync()

Result Type: Task

Demands a read access to the file/directory/file version.

public void DemandReadAccess()

Result Type: void

Refreshes the state of the file/directory/file version.

public void Refresh()

Result Type: void