I want to create a script that deletes an element based on the DMA/EID input parameter.
Doing a follow I found that this uses the SetElementStateMessage.
I also want to check the response to see if it succeeds, which should be a SetEelementStateResponseMessage.
However in C# it doesn\'t seem to find that class.
What\'s the propper way to check the response from the SetElementStateMessage in an automation script?
Hi Jeroen,
That class should be on the same namespace "Skyline.DataMiner.Net.Messages" as the request message you are using, so I am not sure why you are getting the error.
Could you check that the namespaces are correct? And if you don't have extras that may be causing conflict?
Alternatively, you can check Class Library and in there you have the following method IDmsElement Delete | DataMiner Docs
It should allow you to do what you need in an easier manner.
this library is awsome
Example code with Class Library:
IDms myDms = engine.GetDms();
DmsElementId myElementInfo = new DmsElementId(“DMA ID/Element ID”);
IDmsElement myElement = myDms.GetElement(myElementInfo);
myElement.Delete();