IVsShell2::LoadPackageStringWithLCID Method (Guid, UInt32, UInt32, String^)

 

Loads a localized string resource from a VSPackage satellite DLL.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

int LoadPackageStringWithLCID(
	[InAttribute] Guid% guidPackage,
	unsigned int resid,
	unsigned int lcid,
	[OutAttribute] String^% pbstrOut
)

Parameters

guidPackage
Type: System::Guid

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

resid
Type: System::UInt32

[in] Specifies a resource ID of the string.

lcid
Type: System::UInt32

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

pbstrOut
Type: System::String^

[out] Pointer to the requested string.

Return Value

Type: System::Int32

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

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.

Return to top
Show: