通知更改 (IME)输入法编辑器向 IME 输入上下文。方法是 ImmNotifyIME的包装。
命名空间: Microsoft.VisualStudio.Shell.Interop
程序集: Microsoft.VisualStudio.Shell.Interop(在 Microsoft.VisualStudio.Shell.Interop.dll 中)
语法
声明
Function Notify ( _
HIMC As UInteger, _
dwAction As UInteger, _
dwIndex As UInteger, _
dwValue As UInteger, _
<OutAttribute> ByRef pfRetVal As Integer _
) As Integer
int Notify(
uint HIMC,
uint dwAction,
uint dwIndex,
uint dwValue,
out int pfRetVal
)
参数
- HIMC
类型:System.UInt32
[in] 向 IME 上下文的句柄。
- dwAction
类型:System.UInt32
[in] 指示更改的通知代码。有关此参数的值,请参见 ImmNotifyIME。
- dwIndex
类型:System.UInt32
[in] 候选项的索引列表或指示在组合字符串中的值的更改。有关此参数的值,请参见 ImmNotifyIME。
- dwValue
类型:System.UInt32
[in] 其他参数使用 dwAction的那些值。有关更多信息,请参见 ImmNotifyIME。
- pfRetVal
类型:System.Int32%
[out] 非零值,如果方法成功;否则零。
返回值
类型:System.Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。
备注
COM 签名
从 vsshell.idl:
HRESULT IVsIME::Notify(
[in] HIMC himc,
[in] DWORD dwAction,
[in] DWORD dwIndex,
[in] DWORD dwValue,
[out] BOOL * pfRetVal
);
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。