Ditto 5.0.0
Loading...
Searching...
No Matches
DittoSDK.Store.DittoAttachment Class Reference

A reference to a binary attachment file. More...

Inheritance diagram for DittoSDK.Store.DittoAttachment:
DittoSDK.Internal.Drop

Public Member Functions

byte[] Data ()
 Gets the byte array of the binary file attachment.
void CopyToPath (string destinationPath)
 Copies the file attachment to another file path on the current system.
Public Member Functions inherited from DittoSDK.Internal.Drop
void Dispose ()
 Suppresses finalization and initiates custom disposal logic.

Protected Member Functions

override void Dispose (bool disposing)
Protected Member Functions inherited from DittoSDK.Internal.Drop
void Dispose (bool disposing)
 Overload for types to dispose of resources, regardless of whether the type is being disposed or finalized. Note that finalization occurs on a dedicated thread.

Properties

string Id [get]
 Gets the attachment's ID.
ulong Len [get]
 Gets the attachment's size given as number of bytes.
Dictionary< string, string > Metadata [get]
 Gets the attachment's metadata.
FileStream Stream [get]
 Gets file attachment as a read only FileStream.
Properties inherited from DittoSDK.Internal.Drop
bool IsDisposed [get]

Detailed Description

A reference to a binary attachment file.

Member Function Documentation

◆ CopyToPath()

void DittoSDK.Store.DittoAttachment.CopyToPath ( string destinationPath)
inline

Copies the file attachment to another file path on the current system.

Parameters
destinationPathThe destination path to copy the attachment.

◆ Data()

byte[] DittoSDK.Store.DittoAttachment.Data ( )
inline

Gets the byte array of the binary file attachment.

Returns
The attachment data as a byte array.