次の方法で共有


IVsShell2.LoadPackageStringWithLCID Method

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)

Syntax

'宣言
Function LoadPackageStringWithLCID ( _
    ByRef guidPackage As Guid, _
    resid As UInteger, _
    lcid As UInteger, _
    <OutAttribute> ByRef pbstrOut As String _
) As Integer
'使用
Dim instance As IVsShell2
Dim guidPackage As Guid
Dim resid As UInteger
Dim lcid As UInteger
Dim pbstrOut As String
Dim returnValue As Integer

returnValue = instance.LoadPackageStringWithLCID(guidPackage, _
    resid, lcid, pbstrOut)
int LoadPackageStringWithLCID(
    ref Guid guidPackage,
    uint resid,
    uint lcid,
    out string pbstrOut
)
int LoadPackageStringWithLCID(
    [InAttribute] Guid% guidPackage, 
    [InAttribute] unsigned int resid, 
    [InAttribute] unsigned int lcid, 
    [OutAttribute] String^% pbstrOut
)
function LoadPackageStringWithLCID(
    guidPackage : Guid, 
    resid : uint, 
    lcid : uint, 
    pbstrOut : String
) : int

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.

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.

Permissions

See Also

Reference

IVsShell2 Interface

IVsShell2 Members

Microsoft.VisualStudio.Shell.Interop Namespace