I'm trying to add dictionary items programmatically (C#) in umbraco v 4.0.2.1.
I'm perplexed by several apparent anomalies in the DictionaryItem class.
For example, with the DictionaryItem.addKey method, the API documenation indicates a return value of the type Int which I presumed to be the id of the newly created key.
However, I cannot code the routine below as intellisense indicates no return value (void) and, in fact, I get an error.
DictionaryItem class anomalies
Hello Umbraco Colleagues,
I'm trying to add dictionary items programmatically (C#) in umbraco v 4.0.2.1.
I'm perplexed by several apparent anomalies in the DictionaryItem class.
For example, with the DictionaryItem.addKey method, the API documenation indicates a return value of the type Int which I presumed to be the id of the newly created key.
However, I cannot code the routine below as intellisense indicates no return value (void) and, in fact, I get an error.
dictionaryItemId = umbraco.cms.businesslogic.Dictionary.DictionaryItem.addKey("SomeKey", "DefaultValue");
Also - other members of the DictionaryItem seem to be missing such as the important SetValue method and many others.
Can someone please tell me what I'm doing wrong?
Thanks,
David
is working on a reply...