Class Document
Represents an unparsed document (a file on the filesystem, byte[] from a database, etc)
Inheritance
Inherited Members
Namespace: Textkernel.Tx.Models
Assembly: Textkernel.Tx.SDK.dll
Syntax
public class Document
Constructors
| Improve this Doc View SourceDocument(Byte[], DateTime)
Create a Document from a file byte[]
Declaration
public Document(byte[] fileBytes, DateTime lastModified)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | fileBytes | The file byte array |
System.DateTime | lastModified | The last-revised date for this file.
|
Document(String)
Create a Document from a file on the filesystem.
NOTE: this will automatically set the LastModified using System.IO.File.GetLastWriteTime(System.String).
If your files do not have an accurate 'LastWrite' or 'LastModified' time, you must use a different constructor
Declaration
public Document(string path)
Parameters
Type | Name | Description |
---|---|---|
System.String | path |
Properties
| Improve this Doc View SourceAsBase64
The base-64 encoded byte[] for this file. This is what is sent over HTTPS to the API
Declaration
public string AsBase64 { get; protected set; }
Property Value
Type | Description |
---|---|
System.String |
LastModified
The last revised/modified date for this file.
Declaration
public DateTime LastModified { get; protected set; }
Property Value
Type | Description |
---|---|
System.DateTime |