UnsecuredLayoutsPageBase.GetResourceString method
SharePoint 2013
Returns a localized string constructed from a string in a resource (.resx) file in a subfolder of %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\15\ and from the specified array of strings.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Parameters
- strId
- Type: System.String
The lookup ID of the string.
- values
- Type: []
Specific strings that will replace placeholders (such as "%1") in the constructed string.
Return value
Type: System.StringA String constructed from a string in a resource file (that may include placeholders) and an array of specific strings that replace the placeholders, if any.
For example, the file wss.en-US.resx in %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\15\CONFIG\Resources\ assigns the string "Enable or disable access requests for this %1" to the lookup ID "people_accessrequestdesc". If you passed the latter ID and a single member string array containing "Web site" to GetResourceString, then it would return "Enable or disable access requests for this Web site".