Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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)
'Declaration
Public Function GetResourceString ( _
strId As String, _
ParamArray values As Object() _
) As String
'Usage
Dim instance As UnsecuredLayoutsPageBase
Dim strId As String
Dim values As Object()
Dim returnValue As String
returnValue = instance.GetResourceString(strId, _
values)
public string GetResourceString(
string strId,
params Object[] values
)
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.
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".
UnsecuredLayoutsPageBase class
Please sign in to use this experience.
Sign in