Class Document<T>
Metadata entity representing a Document.
public class Document<T> : IDocument, IConcurrentEntity
Type Parameters
T
- Inheritance
-
Document<T>
- Implements
Remarks
Documents and the Document storage are used for the primary Work Item data as well as any attachments added to Work Items or Jobs.
Properties
ConcurrencyToken
[JsonIgnore]
[JsonIgnore]
public string ConcurrencyToken { get; set; }
Property Value
CreatedDateTime
Date and time when the Document was created.
public DateTime CreatedDateTime { get; set; }
Property Value
Data
Document data.
public T Data { get; set; }
Property Value
- T
DataType
.Net Type of the Data object.
[JsonIgnore]
[JsonIgnore]
public Type DataType { get; }
Property Value
DocumentId
Primary key of the Document.
public string DocumentId { get; set; }
Property Value
Type
Date and time when the Document was last updated.
public string Type { get; set; }
Property Value
UpdatedDateTime
External Id of the document. Defaults to the same as the WorkItem.
public DateTime UpdatedDateTime { get; set; }
Property Value
Methods
GetDataAsJObject()
public JObject GetDataAsJObject()
Returns
- JObject