# ConfluenceAttachment

Confluence attachment metadata.

Class 

`OfficeIMO.Confluence`

**Namespace**

`OfficeIMO.Confluence`

**Assembly**

`OfficeIMO.Confluence`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[ConfluenceAttachments.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Confluence/ConfluenceAttachments.cs#L9)

**Modifiers**

sealed

Confluence attachment metadata.

## Inheritance

- object
- ConfluenceAttachment

## Usage

Explore 2 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 2

- Property [ConfluenceAttachmentBatch.Attachments](/api/confluence/officeimo-confluence-confluenceattachmentbatch/#property-attachments)
- Method [ConfluenceClient.UploadAttachmentAsync](/api/confluence/officeimo-confluence-confluenceclient/#method-uploadattachmentasync-string-officeimo-confluence-confluenceattachmentupload-threading-cancellationtoken)

Filter members 

Show inherited

## Constructors

`public ConfluenceAttachment()` [#](#constructor-ctor)

[ConfluenceAttachments.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Confluence/ConfluenceAttachments.cs#L9)

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public string Id { get; set; }` [#](#property-id)

[ConfluenceAttachments.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Confluence/ConfluenceAttachments.cs#L9)

`JsonPropertyName("id")`

Gets or sets the attachment identifier returned by Confluence.

`public string FileName { get; set; }` [#](#property-filename)

[ConfluenceAttachments.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Confluence/ConfluenceAttachments.cs#L12)

`JsonPropertyName("title")`

Gets or sets the attachment title used as its file name.

`public string? MediaType { get; set; }` [#](#property-mediatype)

[ConfluenceAttachments.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Confluence/ConfluenceAttachments.cs#L15)

`JsonPropertyName("mediaType")`

Gets or sets the reported media type, when supplied.

`public long FileSize { get; set; }` [#](#property-filesize)

[ConfluenceAttachments.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Confluence/ConfluenceAttachments.cs#L18)

`JsonPropertyName("fileSize")`

Gets or sets the reported attachment size in bytes.

`public string? PageId { get; set; }` [#](#property-pageid)

[ConfluenceAttachments.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Confluence/ConfluenceAttachments.cs#L21)

`JsonPropertyName("pageId")`

Gets or sets the identifier of the page associated with the attachment, when supplied.

`public string? DownloadLink { get; set; }` [#](#property-downloadlink)

[ConfluenceAttachments.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Confluence/ConfluenceAttachments.cs#L24)

`JsonPropertyName("downloadLink")`

Gets or sets the download link supplied by Confluence, when available.

`public ConfluencePageVersion Version { get; set; }` [#](#property-version)

[ConfluenceAttachments.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Confluence/ConfluenceAttachments.cs#L27)

`JsonPropertyName("version")`

Gets or sets the attachment version metadata.

<!-- PowerForge markdown artifact sha256:63D642126ED66C92191AC0B7A6A0BF8280A8DB24A25D0A115FEED586AAB20333 -->
