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

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

Parameters

id
Type: SystemString
Unique (in context of single file) identifier of the attachment.
fileName
Type: SystemString
Attachment file name.
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.
ArgumentNullExceptionThrown when fileType is null.
See Also