IUIHostLocale.GetUILocale 方法

返回宿主的 UI 区域设置标识符。

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

语法

声明
Function GetUILocale ( _
    <OutAttribute> ByRef plcid As UInteger _
) As Integer
int GetUILocale(
    out uint plcid
)

参数

  • plcid
    类型:System.UInt32%
    [out, retval] 访问 UI 区域设置的唯一标识符的指针。

返回值

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

备注

COM 签名

从 uilocale.idl:

HRESULT IUIHostLocale::GetUILocale(
   [out, retval] LCID *plcid
);

.NET Framework 安全性

请参见

参考

IUIHostLocale 接口

Microsoft.VisualStudio.Shell.Interop 命名空间