Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • David F. Hill 122 posts 242 karma points
    Dec 09, 2009 @ 21:05
    David F. Hill
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft