Class Attachment
An attachment is an uploaded file with metadata.
public class Attachment : IHasAssetNumber, IHasVersionControl<Attachment>
- Inheritance
-
Attachment
- Implements
- Inherited Members
- Extension Methods
Constructors
Attachment()
Constructs an empty attachment.
public Attachment()
Properties
Asset
Every attachment is assigned a unique asset number in the organization's inventory.
public int Asset { get; set; }
Property Value
AssetVersion
Every asset number has a unique version number.
public int AssetVersion { get; }
Property Value
Author
Who uploaded the file?
public Guid Author { get; set; }
Property Value
Condition
public string Condition { get; set; }
Property Value
Content
Attachments need support for multilingual titles and descriptions.
public ContentTitle Content { get; set; }
Property Value
FirstPublished
public DateTimeOffset? FirstPublished { get; set; }
Property Value
Identifier
Uniquely identifies the attacment.
public Guid Identifier { get; set; }
Property Value
Image
Image attachments have additional extended properties that apply to images only.
public AttachmentImage Image { get; set; }
Property Value
NextVersion
public Attachment NextVersion { get; set; }
Property Value
PreviousVersion
public Attachment PreviousVersion { get; set; }
Property Value
PublicationStatus
public PublicationStatus PublicationStatus { get; set; }
Property Value
QuestionIdentifiers
public HashSet<Guid> QuestionIdentifiers { get; set; }
Property Value
Type
Attachments are organized into types. Certain functions might apply to one type and not to another type.
public AttachmentType Type { get; set; }
Property Value
Upload
What file was uploaded?
public Guid Upload { get; set; }
Property Value
Uploaded
public DateTimeOffset Uploaded { get; set; }
Property Value
Methods
Clone()
public Attachment Clone()
Returns
GetAttachmentType(string)
public static AttachmentType GetAttachmentType(string extension)
Parameters
extensionstring