CStorage.AttachmentAdd Method | |
This method is called when an email is received to initialize the saving of a new attachment.
The implementation in CStorage generates a unique ID and creates the (empty) file.
Namespace:
VO
Assembly:
VOInternetClasses (in VOInternetClasses.dll) Version: 2.19
Syntax VIRTUAL METHOD AttachmentAdd(
cFile AS STRING,
dwCode AS DWORD
) AS STRING
public virtual string AttachmentAdd(
string cFile,
[DefaultParameterValueAttribute(0, 0)] uint dwCode
)
Request Example
View SourceParameters
- cFile
- Type: String
Contains the file name of the attachment. - dwCode
- Type: DWord
The Coding type. Can be one of the following values:
CODING_TYPE_7BIT
CODING_TYPE_8BIT
CODING_TYPE_BASE64
CODING_TYPE_NONE
CODING_TYPE_PRINTABLE
CODING_TYPE_UNKNOWN
CODING_TYPE_UUENCODE
In most cases it is CODING_TYPE_BASE64 and only this type is implemented in the CStorage class.
Return Value
Type:
StringcID STRING The unique ID. If AttachmentAdd() fails it returns a NULL_STRING.
See Also