UnsecuredLayoutsPageBase.GetResourceString 方法

返回本地化的字符串构造%ProgramFiles%\Common Files\Microsoft Shared\web server extensions\15\的子文件夹中的资源 (.resx) 文件中的字符串以及从指定的字符串数组。

命名空间:  Microsoft.SharePoint.WebControls
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public Function GetResourceString ( _
    strId As String, _
    ParamArray values As Object() _
) As String
用法
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
)

参数

  • values
    类型:[]

    将替换占位符 (如"%1") 构造字符串中的特定字符串。

返回值

类型:System.String
从字符串的资源文件 (即可能包括占位符) 和一个特定的字符串数组中构造String的替换占位符,如果有)。

备注

例如,文件wss.en-US.resx中%ProgramFiles%\Common Files\Microsoft Shared\web server extensions\15\CONFIG\Resources\ 赋予该字符串值"启用或禁用此 %1 的访问请求"的查找 id"people_accessrequestdesc"。如果您传递后者 ID 和包含到GetResourceString的"Web 网站"的单个成员字符串数组,,它将返回"启用或禁用此网站的访问请求"。

另请参阅

引用

UnsecuredLayoutsPageBase 类

UnsecuredLayoutsPageBase 成员

Microsoft.SharePoint.WebControls 命名空间