How to set Alarm, Function and AML_Call

How to set Alarm, Function and AML_Call

Hi,
is it possible to set the Alarm-, Function- and AML_Call-Property to a specific value out of c#?
I tried to use the following syntax but it doesn't work...
zSubVar.DynProperties["Alarm"] = 1;
zSubVar.DynProperties["Function"] = "Fct_STS_" + pVar.ScreenName;
zSubVar.DynProperties["AML_Call"] = 1;
Thanks in advance.
Regards, Horst

This is a migrated post! Originally posted on 22.04.2015 by user nollh. Please be aware that information can be outdated.