See below the example of using the SetMbUpdate operation to set update unit in the update. The unit must be previously added to update elements tree. The query sends update moniker and element key in the tree that corresponds update unit. No additional information is returned in the response.
{
"SetMbUpdate" :
{
"tMbUpdate" :
{
"id" : "S1!M!S!MbUpd1"
},
"tArg" :
{
"pattern" : "",
"meta" :
{
"eventsNode" :
{
"k" : "2"
}
}
}
}
}
{
"SetMbUpdateResult" :
{
"id" :
{
"id" : "S1!M!S!MbUpd1"
}
}
}
public static SetMbUpdateResult SetEventsNode(string moniker, ulong nodeKey)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tSet = new SetMbUpdate()
{
tArg = new SetMbUpdateArg()
{
pattern = new MbUpdateMdPattern() {},
meta = new MbUpdateMd()
{
eventsNode = new MbUpdateNode() { k = nodeKey }
},
},
tMbUpdate = new MbUpdateId() { id = moniker }
};
//Install update unit
var result = somClient.SetMbUpdate(tSet);
return result;
}
See also: