Table of Contents

Method Delete

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

Delete(IDMAObjectRef, string)

Deletes the attachment with name attachmentName from the object with ID objectRef.

public void Delete(IDMAObjectRef objectRef, string attachmentName)

Parameters

objectRef IDMAObjectRef

The ID of the Skyline.DataMiner.Net.DMAObjectRef to delete an attachment from.

attachmentName string

The 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 or attachmentName 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