다음을 통해 공유


IVsResourceManager.LoadResourceIcon2 Method

Definition

Loads a resource icon into the specified assembly.

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

cx
Int32

[in] Width of the icon.

cy
Int32

[in] Height of the icon.

hicoValue
IntPtr

nativeint

[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