PST .NET Class Library
Show/Hide TOC

# Attachment(String, Byte) Constructor

Initializes a new instance of the Attachment class based on the supplied byte array.

## Definition

Namespace: Independentsoft.Msg
Assembly: Independentsoft.Pst (in Independentsoft.Pst.dll) Version: 1.2.900.17830
C#

    public Attachment(
    	string fileName,
    	byte[] buffer
    )

VB

    Public Sub New (
    	fileName As String,
    	buffer As Byte()
    )

#### Parameters

fileName String
  Attachment file name.
buffer Byte
  A byte array.

## See Also

#### Reference

Attachment Class
Attachment Overload
Independentsoft.Msg Namespace