IUIHostLocale.GetUILocale Method

Returns the UI locale identifier of the host.

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

Syntax

'Declaration
Function GetUILocale ( _
    <OutAttribute> ByRef plcid As UInteger _
) As Integer
int GetUILocale(
    out uint plcid
)
int GetUILocale(
    [OutAttribute] unsigned int% plcid
)
abstract GetUILocale : 
        plcid:uint32 byref -> int
function GetUILocale(
    plcid : uint
) : int

Parameters

  • plcid
    Type: System.UInt32%

    [out, retval] Pointer to the unique identifier of the UI locale.

Return Value

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

Remarks

COM Signature

From uilocale.idl:

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

.NET Framework Security

See Also

Reference

IUIHostLocale Interface

Microsoft.VisualStudio.Shell.Interop Namespace