IVsResourceManager.LoadResourceString2 Method

Loads a resource string.

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


Function LoadResourceString2 ( _
    pszAssemblyPath As String, _
    culture As Integer, _
    pszResourceName As String, _
    <OutAttribute> ByRef pbstrValue As String _
) As Integer
‘사용 방법
Dim instance As IVsResourceManager
Dim pszAssemblyPath As String
Dim culture As Integer
Dim pszResourceName As String
Dim pbstrValue As String
Dim returnValue As Integer

returnValue = instance.LoadResourceString2(pszAssemblyPath, _
    culture, pszResourceName, pbstrValue)
int LoadResourceString2(
    string pszAssemblyPath,
    int culture,
    string pszResourceName,
    out string pbstrValue
int LoadResourceString2(
    [InAttribute] String^ pszAssemblyPath, 
    [InAttribute] int culture, 
    [InAttribute] String^ pszResourceName, 
    [OutAttribute] String^% pbstrValue
abstract LoadResourceString2 : 
        pszAssemblyPath:string * 
        culture:int * 
        pszResourceName:string * 
        pbstrValue:string byref -> int 
function LoadResourceString2(
    pszAssemblyPath : String, 
    culture : int, 
    pszResourceName : String, 
    pbstrValue : String
) : int


  • pszAssemblyPath
    Type: System.String
    Path to the assembly where the resource is to be loaded.
  • culture
    Type: System.Int32
    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.

Return Value

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


COM Signature

From vsshell80.idl:

HRESULT LoadResourceString2(
   [in, string] LPCOLESTR pszAssemblyPath,
   [in] int culture,
   [in, string] LPCOLESTR pszResourceName,
   [out, retval] BSTR *pbstrValue

.NET Framework Security

See Also


IVsResourceManager Interface

IVsResourceManager Members

Microsoft.VisualStudio.Shell.Interop Namespace