Partager via


IVsResourceManager.LoadResourceString Method

Loads the resource string into the specified package.

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

Syntax

'Declaration
Function LoadResourceString ( _
    ByRef guidPackage As Guid, _
    culture As Integer, _
    pszResourceName As String, _
    <OutAttribute> ByRef pbstrValue As String _
) As Integer
int LoadResourceString(
    ref Guid guidPackage,
    int culture,
    string pszResourceName,
    out string pbstrValue
)
int LoadResourceString(
    [InAttribute] Guid% guidPackage, 
    [InAttribute] int culture, 
    [InAttribute] String^ pszResourceName, 
    [OutAttribute] String^% pbstrValue
)
abstract LoadResourceString : 
        guidPackage:Guid byref * 
        culture:int * 
        pszResourceName:string * 
        pbstrValue:string byref -> int
function LoadResourceString(
    guidPackage : Guid, 
    culture : int, 
    pszResourceName : String, 
    pbstrValue : String
) : int

Parameters

  • guidPackage
    Type: Guid%

    [in] Guid of the package into which the string will be loaded.

  • culture
    Type: 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
    Type: String

    [in] The name of the resource.

  • pbstrValue
    Type: String%

    [out, retval] Pointer to the resource.

Return Value

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

Remarks

COM Signature

From vsshell80.idl:

HRESULT LoadResourceString(
   [in] REFGUID guidPackage,
   [in] int culture,
   [in, string] LPCOLESTR pszResourceName,
   [out, retval] BSTR *pbstrValue
);

.NET Framework Security

See Also

Reference

IVsResourceManager Interface

Microsoft.VisualStudio.Shell.Interop Namespace