Attachment Constructor (String, String) |
Namespace: GroupDocs.Viewer.ResultsAssembly: GroupDocs.Viewer (in GroupDocs.Viewer.dll) Version: 22.5
Syntaxpublic Attachment(
string fileName,
string filePath
)
Public Sub New (
fileName As String,
filePath As String
)
public:
Attachment(
String^ fileName,
String^ filePath
)
new :
fileName : string *
filePath : string -> Attachment
Parameters
- 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.
ExceptionsException | Condition |
---|
ArgumentException | Thrown when fileName is null or empty. |
ArgumentException | Thrown when filePath is null or empty. |
See Also