IVsStructuredFileIOHelper.LoadLocalizedString 方法

加载标记在将通过本地化的字符串加载的持久文件中找到。

命名空间:  Microsoft.VisualStudio.Shell.Interop
程序集:  Microsoft.VisualStudio.Shell.Interop(在 Microsoft.VisualStudio.Shell.Interop.dll 中)

语法

声明
Function LoadLocalizedString ( _
    ulStringID As UInteger, _
    ByRef pbstr As String _
) As Integer
int LoadLocalizedString(
    uint ulStringID,
    ref string pbstr
)

参数

  • pbstr
    类型:System.String%
    为本地化字符串的指针。

返回值

类型:System.Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

COM 签名

从 vsshell.idl:

HRESULT IVsStructuredFileIOHelper::LoadLocalizedString(
   ULONG ulStringID, 
   BSTR *pbstr
   );

.NET Framework 安全性

请参见

参考

IVsStructuredFileIOHelper 接口

Microsoft.VisualStudio.Shell.Interop 命名空间