# FileReference class

Namespace: [Rhino.FileIO](https://developer.rhino3d.com/api/rhinocommon/namespace/rhino.fileio.md) · Assembly: [RhinoCommon](https://developer.rhino3d.com/api/rhinocommon/assembly/rhinocommon.md)

```cs
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](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.filereference/ctor.md): Constructs a new instance of the FileReference class, given a fullPath, a relativePath a content hash and a status value.

## Finalizer

- [~FileReference](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.filereference/finalize.md)

## Properties

- [ContentHash](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.filereference/contenthash.md): Gets the content hash.
- [FullPath](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.filereference/fullpath.md): Gets the absolute path of this file reference.
- [FullPathStatus](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.filereference/fullpathstatus.md): Gets the file reference status.
- [IsSet](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.filereference/isset.md): Returns an indication of the fact that the reference is actually set to a non-null value.
- [RelativePath](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.filereference/relativepath.md): Gets the relative path of this file reference.

## Methods

- [CreateFromFullAndRelativePaths](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.filereference/createfromfullandrelativepaths.md): (static) Returns a new file reference. This returns a new instance even if the path does not exist.
- [CreateFromFullPath](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.filereference/createfromfullpath.md): (static) Returns a new file reference. This returns a new instance even if the path does not exist.
- [Dispose](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.filereference/dispose.md): Reclaims unmanaged resources used by this object.
