Share via


IVsIME.Activate(IntPtr, VSIME_ERR[]) Method

Definition

Activates the Input Method Editor (IME).

public:
 int Activate(IntPtr hwnd, cli::array <Microsoft::VisualStudio::Shell::Interop::VSIME_ERR> ^ perr);
public int Activate (IntPtr hwnd, Microsoft.VisualStudio.Shell.Interop.VSIME_ERR[] perr);
abstract member Activate : nativeint * Microsoft.VisualStudio.Shell.Interop.VSIME_ERR[] -> int
Public Function Activate (hwnd As IntPtr, perr As VSIME_ERR()) As Integer

Parameters

hwnd
IntPtr

nativeint

[in] The handle for the editing window.

perr
VSIME_ERR[]

[out] Pointer to an error value, a value from the VSIME_ERR enumeration. IMENORMAL indicates no error.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsIME::Activate(  
   [in] HWND hwnd,   
   [out] VSIME_ERR * perr  
);  

Applies to