Method Delete
Delete(IDMAObjectRef, string)
Deletes the attachment with name attachmentName
from the object with ID objectRef
.
public void Delete(IDMAObjectRef objectRef, string attachmentName)
Parameters
objectRef
IDMAObjectRefThe ID of the DMAObjectRef to delete an attachment from.
attachmentName
stringThe name of the attachment to delete.
Remarks
This method does not throw an exception if an attachment with the given name could not be found for the object.
Exceptions
- ArgumentNullException
objectRef
orattachmentName
is null.- DataMinerException
InnerException will be an ArgumentException if the object could not be found.
- DataMinerSecurityException
If the user does not have edit permissions on the object