Method Get
Get(IDMAObjectRef, string)
Get the contents of the attachment with name attachmentName
for object with id objectRef
.
public byte[] Get(IDMAObjectRef objectRef, string attachmentName)
Parameters
objectRef
IDMAObjectRefThe id of the object to find the attachment for.
attachmentName
stringThe name of the attachment to find.
Returns
- byte[]
The contents of the attachment
Exceptions
- ArgumentNullException
If a passed argument is null
- DataMinerCOMException
If the attachment could not be found
- DataMinerException
The inner exception will be an ArgumentException if the object could not be found
- DataMinerSecurityException
If the user does not have read permissions on the object