IFileSystemLink
Namespace: TagBites.IO
Assembly: TagBites.IO.dll
Provides a mechanism for linking to the file/directory/file version.
public abstract interface IFileSystemLink
Properties
CanRead
Gets a value indicating whether the file/directory/file version can be read.
public bool CanRead { get; }
Result Type: bool
CanWrite
Gets a value indicating whether the file/directory/file version can be written.
public bool CanWrite { get; }
Result Type: bool
CreationTime
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>
Exists
Gets a value indicating whether the file/directory/file version exists.
public bool Exists { get; }
Result Type: bool
FileSystem
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
FullName
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
IsReadOnly
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
ModifyTime
Gets the time when the current file/directory/file version was last modified.
public DateTime? ModifyTime { get; }
Result Type: DateTime?<DateTime>
Name
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
Type
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
Delete()
Deletes the file/directory/file version.
public void Delete()
Result Type: void
DeleteAsync()
Asynchronously deletes the file/directory/file version.
public Task DeleteAsync()
Result Type: Task
DemandReadAccess()
Demands a read access to the file/directory/file version.
public void DemandReadAccess()
Result Type: void
Refresh()
Refreshes the state of the file/directory/file version.
public void Refresh()
Result Type: void