SPUtility.GetLocalizedString

Sometimes it can be useful to get resources from the Resources folder in the MOSS 12 hive in your C# code. If you want to get a resource from a resource file located in 12/Resources folder at runtime you can use the GetLocalizedString method of the SPUtility class, like so:

The above example will fetch the resource corresponding to “dcl_schema_view_allitems” from the core.resx file with 1053 (Swedish) LCID. The value returned from the above code is (from core.sv-se.resx): “Alla objekt”