Table of Contents

Method Get

Namespace
Skyline.DataMiner.Net.Apps.Utils
Assembly
SLNetTypes.dll

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 IDMAObjectRef

The id of the object to find the attachment for.

attachmentName string

The 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