Attachment Constructor (String, String)
Initializes new instance of Attachment class.

Namespace: GroupDocs.Viewer.Results
Assembly: GroupDocs.Viewer (in GroupDocs.Viewer.dll) Version: 21.11
Syntax
public Attachment(
	string fileName,
	string filePath
)

Parameters

fileName
Type: SystemString
Attachment file name.
filePath
Type: SystemString
Attachment relative path e.g.
Examples
folder/file.docx
or filename when the file is located in the root of an archive, in e-mail message or data file.
Exceptions
ExceptionCondition
ArgumentExceptionThrown when fileName is null or empty.
ArgumentExceptionThrown when filePath is null or empty.
See Also