Compartilhar via


IVsShell2.LoadPackageStringWithLCID(Guid, UInt32, UInt32, String) Method

Definition

Loads a localized string resource from a VSPackage satellite DLL.

public:
 int LoadPackageStringWithLCID(Guid % guidPackage, System::UInt32 resid, System::UInt32 lcid, [Runtime::InteropServices::Out] System::String ^ % pbstrOut);
public int LoadPackageStringWithLCID (ref Guid guidPackage, uint resid, uint lcid, out string pbstrOut);
abstract member LoadPackageStringWithLCID : Guid * uint32 * uint32 * string -> int
Public Function LoadPackageStringWithLCID (ByRef guidPackage As Guid, resid As UInteger, lcid As UInteger, ByRef pbstrOut As String) As Integer

Parameters

guidPackage
Guid

[in] GUID of the VSPackage whose satellite DLL contains the string resource.

resid
UInt32

[in] Specifies a resource ID of the string.

lcid
UInt32

[in] Specifies the locale ID, LCID. For example, LCID = 1033 for English.

pbstrOut
String

[out] Pointer to the requested string.

Returns

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

Remarks

COM Signature

From vsshell80.idl:

HRESULT IVsShell2::LoadPackageStringWithLCID(  
   [in] REFGUID guidPackage,  
   [in] ULONG resid,  
   [in] LCID lcid,  
   [out, retval] BSTR *pbstrOut  
);  

Loads a resource string from the correct satellite DLL based on the LCID specified.

Applies to