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

Namespace: GroupDocs.Viewer.Results
Assembly: GroupDocs.Viewer (in GroupDocs.Viewer.dll) Version: 21.9
Syntax
public Attachment(
	string id,
	string fileName,
	string filePath,
	FileType fileType,
	long size
)

Parameters

id
Type: SystemString
Unique (in context of single file) identifier of the attachment.
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.
fileType
Type: GroupDocs.ViewerFileType
Attachment file type.
size
Type: SystemInt64
Attachment file size in bytes.
Exceptions
ExceptionCondition
ArgumentExceptionThrown when id is null or empty.
ArgumentExceptionThrown when fileName is null or empty.
ArgumentExceptionThrown when filePath is null or empty.
ArgumentNullExceptionThrown when fileType is null.
See Also