DittoSharp  0.4.0-alpha5
Public Member Functions | Public Attributes | List of all members
DittoSharp.DittoAttachment Class Reference

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

Public Member Functions

byte [] Data ()
 Gets the byte array of the binary file attachment. More...
 
void CopyToPath (string destinationPath)
 Copies the file attachment to another file path on the current system. More...
 

Public Attributes

FileStream Stream => File.Open(this.GetPath(), FileMode.Open, FileAccess.Read)
 Gets file attachment as a read only FileStream. More...
 

Detailed Description

A reference to a binary attachment file.

Member Function Documentation

◆ CopyToPath()

void DittoSharp.DittoAttachment.CopyToPath ( string  destinationPath)

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

Parameters
destinationPathThe destination path to copy the attachment.

◆ Data()

byte [] DittoSharp.DittoAttachment.Data ( )

Gets the byte array of the binary file attachment.

Returns
The attachment data as a byte array.

Member Data Documentation

◆ Stream

FileStream DittoSharp.DittoAttachment.Stream => File.Open(this.GetPath(), FileMode.Open, FileAccess.Read)

Gets file attachment as a read only FileStream.