0 out of 1 rated this helpful - Rate this topic

UnsecuredLayoutsPageBase.GetResourceString method

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.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
public string GetResourceString(
	string strId,
	params Object[] values
)

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.String
A 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".

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.