EntityFileMetadata class

Medium

Terrasoft.File namespace.

The Terrasoft.File.EntityFileMetadata class implements the Terrasoft.File.Abstractions.Metadata.FileMetadata abstract class. This class describes the file metadata in the [Attachments] object and provide the methods to manage them.

Constructors 

EntityFileMetadata(EntityFileLocator fileLocator)

Creates an EntityFileMetadata instance for a given fileLocator.

Properties 

Attributes IReadOnlyDictionary<string, object>

Collection of attribute values.

RecordId Guid

File ID.

EntitySchemaName string

The name of the object that stores the file.

Methods 

override void SetAttribute<TValue>(string name, TValue value)

Set the additional name file attribute to the specified value.

override TValue GetAttribute<TValue>(string name, TValue defaultValue)

Returns the specified value or the defaultValue of the additional name attribute .