Attachment Constructor (String, String, String, FileType, Int64) |
Namespace: GroupDocs.Viewer.ResultsAssembly: GroupDocs.Viewer (in GroupDocs.Viewer.dll) Version: 22.5
Syntaxpublic Attachment(
string id,
string fileName,
string filePath,
FileType fileType,
long size
)
Public Sub New (
id As String,
fileName As String,
filePath As String,
fileType As FileType,
size As Long
)
public:
Attachment(
String^ id,
String^ fileName,
String^ filePath,
FileType^ fileType,
long long size
)
new :
id : string *
fileName : string *
filePath : string *
fileType : FileType *
size : int64 -> Attachment
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.
Examplesfolder/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.
ExceptionsException | Condition |
---|
ArgumentException | Thrown when id is null or empty. |
ArgumentException | Thrown when fileName is null or empty. |
ArgumentException | Thrown when filePath is null or empty. |
ArgumentNullException | Thrown when fileType is null. |
See Also