激活输入法编辑器 (IME)。
命名空间: Microsoft.VisualStudio.Shell.Interop
程序集: Microsoft.VisualStudio.Shell.Interop(在 Microsoft.VisualStudio.Shell.Interop.dll 中)
语法
声明
Function Activate ( _
hwnd As IntPtr, _
<OutAttribute> perr As VSIME_ERR() _
) As Integer
int Activate(
IntPtr hwnd,
VSIME_ERR[] perr
)
参数
- hwnd
类型:System.IntPtr
[in] 编辑窗口的句柄。
- perr
类型:array<Microsoft.VisualStudio.Shell.Interop.VSIME_ERR[]
[out] 为 false 值,从 VSIME_ERR 枚举的值的指针。IMENORMAL 不指示错误。
返回值
类型:System.Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。
备注
COM 签名
从 vsshell.idl:
HRESULT IVsIME::Activate(
[in] HWND hwnd,
[out] VSIME_ERR * perr
);
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。