When creating a new SharPoint Online web using CSOM .Net, I have to provide a valid LCID for Language property in WebCreationInformation object (when not using default). Is there a way of retrieving a list valid LCIDs from the server or do I have to hard-code this list in my app?


Try this one. May be it can help you

  SPLanguageCollection lang = SPRegionalSettings.GlobalInstalledLanguages;

  foreach (SPLanguage language in lang)
         Console.WriteLine(format, language.LCID, language.DisplayName);

Ref: Link

  • 1
    He wants CSOM not SSOM.
    – Akhoy
    Aug 24 '15 at 13:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.