Setting locale Display Name on User Profile Property programmatically RRS feed

  • Question

  • Hi,

    I am a newbie in SharePoint Development - but anyway I have created this custom User Profile property as a Feature and it works fine, but I am wondering how to set a second Display Name (the main is set in english and we normally add one more in danish) I know this is real easy to do manually but how do I do it in code.

    The above sets the english main displayname:

    CoreProperty.DisplayName = "Home Address";

    When I read the definition for DisplayName it says : Gets or sets the localized display name of the profile core property.

    I have found a method in CoreProperty which is called DisplayNameLocalized but this I cannot write to because it is read only.

    Best regards,


    Wednesday, March 7, 2012 2:31 PM


  • The property name of each language can be modified on the DisplayNameLocalized property. The property is an array and uses a locale id as index.

    CoreProperty.DisplayNameLocalized[1033] = "";

    SharePoint Developer | @zeemanj | Blog

    • Marked as answer by Qiao Wei Monday, March 12, 2012 2:11 AM
    Saturday, March 10, 2012 9:57 AM