MapiAttachmentCollection.Replace

MapiAttachmentCollection.Replace method

Replaces the attachment at the specified position with an embedded message.

public void Replace(int index, string name, MapiMessage msg)
ParameterTypeDescription
indexInt32The zero-based position of the attachment to replace.
nameStringThe name of the new attachment.
msgMapiMessageThe message to attach.

Exceptions

exceptioncondition
ArgumentNullExceptionmsg is null.

See Also