Class FileMetadata
Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
Implements
Inherited Members
Namespace: OpenText.Fusion.AdapterSdk.Api
Assembly: OpenText.Fusion.AdapterSdk.Api.dll
Syntax
[Serializable]
public class FileMetadata : IFileMetadata
Constructors
FileMetadata()
Initializes a new instance of the FileMetadata class.
Declaration
public FileMetadata()
FileMetadata(string, string)
Initializes a new instance of the FileMetadata class.
Declaration
public FileMetadata(string name, string fileLocation)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The file name. |
| string | fileLocation | The file location. |
Properties
AccessedTime
File last accessed date time.
Declaration
[PropertyIndex(5)]
public DateTime? AccessedTime { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime? |
AdditionalMetadata
Gets the additional metadata.
Declaration
[PropertyIndex(9)]
public IDictionary<string, IEnumerable<string>> AdditionalMetadata { get; set; }
Property Value
| Type | Description |
|---|---|
| IDictionary<string, IEnumerable<string>> | The additional metadata. |
Remarks
Important metadata to attach to a file that is not covered by other properties.
CreatedTime
File created date time.
Declaration
[PropertyIndex(4)]
public DateTime? CreatedTime { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime? |
FileLocation
File location - full path or repository identifier.
Declaration
[PropertyIndex(0)]
public string FileLocation { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
This property should contain everything that is needed to locate and retrieve a file from the repository. This property is required.
FilePath
File path.
Declaration
[PropertyIndex(10)]
public string? FilePath { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ModifiedTime
File modified date time.
Declaration
[PropertyIndex(6)]
public DateTime ModifiedTime { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime |
Remarks
Value of the ModifiedTime will be used when detecting updated documents.
Name
File name.
Declaration
[PropertyIndex(1)]
public string? Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Title
File title.
Declaration
[PropertyIndex(2)]
public string? Title { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Version
Revision number if available.
Declaration
[PropertyIndex(7)]
public int? Version { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
Methods
WrapStringDictionary(IDictionary<string, IEnumerable<string>>)
Creates an IFileMetadata instance that is backed by the specified dictionary.
Declaration
public static IFileMetadata WrapStringDictionary(IDictionary<string, IEnumerable<string>> metadata)
Parameters
| Type | Name | Description |
|---|---|---|
| IDictionary<string, IEnumerable<string>> | metadata | The string dictionary that contains the file metadata. |
Returns
| Type | Description |
|---|---|
| IFileMetadata | A file metadata object that reads from the dictionary. |