FileReference

References
public sealed class FileReference : IDisposable
Manages a reference to an existing or non-existing file, using either or both absolute or relative paths. Once constructed, this class is immutable.

Constructors

FileReference

#Since v6.0
Constructs a new instance of the FileReference class, given a fullPath, a relativePath a content hash and a status value.
public FileReference(
fullPath,
relativePath,
hash,
status
)

Finalizer

~FileReference

#
~FileReference()

Properties

ContentHash

#Since v6.0
Gets the content hash.
public ContentHash ContentHash { get; }

FullPath

#Since v6.0
Gets the absolute path of this file reference.
public string FullPath { get; }

FullPathStatus

#Since v6.0
Gets the file reference status.
public FileReferenceStatus FullPathStatus { get; }

IsSet

#Since v6.0
Returns an indication of the fact that the reference is actually set to a non-null value.
public bool IsSet { get; }

RelativePath

#Since v6.0
Gets the relative path of this file reference.
public string RelativePath { get; }

Methods

CreateFromFullAndRelativePaths

#Since v6.0
Returns a new file reference. This returns a new instance even if the path does not exist.
public static FileReference CreateFromFullAndRelativePaths(
fullPath,
A full path. This parameter cannot be null.
relativePath
A relative path. This parameter can be null.
)
A file reference to the specified paths.

CreateFromFullPath

#Since v6.0
Returns a new file reference. This returns a new instance even if the path does not exist.
public static FileReference CreateFromFullPath(
fullPath
A full path.
)
A file reference to the specified path.

Dispose

#Since v6.0
Reclaims unmanaged resources used by this object.
public void Dispose()