Table of Contents

Class Attachment

Namespace
InSite.Domain.Banks
Assembly
Shift.Sdk.dll

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

int

AssetVersion

Every asset number has a unique version number.

public int AssetVersion { get; }

Property Value

int

Author

Who uploaded the file?

public Guid Author { get; set; }

Property Value

Guid

Condition

public string Condition { get; set; }

Property Value

string

Content

Attachments need support for multilingual titles and descriptions.

public ContentTitle Content { get; set; }

Property Value

ContentTitle

FirstPublished

public DateTimeOffset? FirstPublished { get; set; }

Property Value

DateTimeOffset?

Identifier

Uniquely identifies the attacment.

public Guid Identifier { get; set; }

Property Value

Guid

Image

Image attachments have additional extended properties that apply to images only.

public AttachmentImage Image { get; set; }

Property Value

AttachmentImage

NextVersion

public Attachment NextVersion { get; set; }

Property Value

Attachment

PreviousVersion

public Attachment PreviousVersion { get; set; }

Property Value

Attachment

PublicationStatus

public PublicationStatus PublicationStatus { get; set; }

Property Value

PublicationStatus

QuestionIdentifiers

public HashSet<Guid> QuestionIdentifiers { get; set; }

Property Value

HashSet<Guid>

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

AttachmentType

Upload

What file was uploaded?

public Guid Upload { get; set; }

Property Value

Guid

Uploaded

public DateTimeOffset Uploaded { get; set; }

Property Value

DateTimeOffset

Methods

Clone()

public Attachment Clone()

Returns

Attachment

GetAttachmentType(string)

public static AttachmentType GetAttachmentType(string extension)

Parameters

extension string

Returns

AttachmentType