IVsResourceManager.LoadResourceString2(String, Int32, String, String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将资源字符串加载到指定的程序集中。
public:
int LoadResourceString2(System::String ^ pszAssemblyPath, int culture, System::String ^ pszResourceName, [Runtime::InteropServices::Out] System::String ^ % pbstrValue);
int LoadResourceString2(std::wstring const & pszAssemblyPath, int culture, std::wstring const & pszResourceName, [Runtime::InteropServices::Out] std::wstring const & & pbstrValue);
public int LoadResourceString2 (string pszAssemblyPath, int culture, string pszResourceName, out string pbstrValue);
abstract member LoadResourceString2 : string * int * string * string -> int
Public Function LoadResourceString2 (pszAssemblyPath As String, culture As Integer, pszResourceName As String, ByRef pbstrValue As String) As Integer
参数
- pszAssemblyPath
- String
中要在其中加载资源的程序集的路径。
- culture
- Int32
中LCID 值,指定字符串有效的区域性。 如果提供的值为0,则将选择用户在启动应用程序时选择的 LCID。
- pszResourceName
- String
中资源的名称。
- pbstrValue
- String
[out,retval]指向资源的指针。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。
注解
COM 签名
从 vsshell80:
HRESULT LoadResourceString2(
[in, string] LPCOLESTR pszAssemblyPath,
[in] int culture,
[in, string] LPCOLESTR pszResourceName,
[out, retval] BSTR *pbstrValue
);