Partager via


IVsResourceManager.LoadResourceString2(String, Int32, String, String) Method

Definition

Loads a resource string into the specified assembly.

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

Parameters

pszAssemblyPath
String

[in] Path to the assembly where the resource is to be loaded.

culture
Int32

[in] A LCID value specifying the culture for which the string is valid. Supplying a value of 0 will select the LCID that the user selected when the application was started.

pszResourceName
String

[in] The name of the resource.

pbstrValue
String

[out, retval]Pointer to the resource.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

This method is safe to access from any thread.

Applies to