Share via


IVsResourceManager.LoadResourceBlob2 Method

Definition

Loads a resource blob into the specified assembly.

public:
 int LoadResourceBlob2(System::String ^ pszAssemblyPath, int culture, System::String ^ pszResourceName, [Runtime::InteropServices::Out] IntPtr % pBytes, [Runtime::InteropServices::Out] int % lAllocated);
public int LoadResourceBlob2 (string pszAssemblyPath, int culture, string pszResourceName, out IntPtr pBytes, out int lAllocated);
abstract member LoadResourceBlob2 : string * int * string * nativeint * int -> int
Public Function LoadResourceBlob2 (pszAssemblyPath As String, culture As Integer, pszResourceName As String, ByRef pBytes As IntPtr, ByRef lAllocated As Integer) 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 resource 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.

pBytes
IntPtr

nativeint

[out] Size in bytes of the blob.

lAllocated
Int32

[out] Number of bytes allocated for the blob.

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