IVsExpansionEvents.OnAfterSnippetsKeyBindingChange 方法

调用,当在与插入代码段的键绑定更改。

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

语法

声明
Function OnAfterSnippetsKeyBindingChange ( _
    dwCmdGuid As UInteger, _
    dwCmdId As UInteger, _
    fBound As Integer _
) As Integer
int OnAfterSnippetsKeyBindingChange(
    uint dwCmdGuid,
    uint dwCmdId,
    int fBound
)
int OnAfterSnippetsKeyBindingChange(
    [InAttribute] unsigned int dwCmdGuid, 
    [InAttribute] unsigned int dwCmdId, 
    [InAttribute] int fBound
)
abstract OnAfterSnippetsKeyBindingChange : 
        dwCmdGuid:uint32 * 
        dwCmdId:uint32 * 
        fBound:int -> int
function OnAfterSnippetsKeyBindingChange(
    dwCmdGuid : uint, 
    dwCmdId : uint, 
    fBound : int
) : int

参数

  • dwCmdGuid
    类型:UInt32

    [in] 绑定的命令组的 GUID。

  • dwCmdId
    类型:UInt32

    [in] 命令的 ID 在绑定到的命令组中。

  • fBound
    类型:Int32

    [in] 非零 (TRUE),则该命令绑定;否则,零 (0)FALSE),则移除绑定。

返回值

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

备注

COM 签名

HRESULT OnAfterSnippetsKeyBindingChange(
   DWORD dwCmdGuid,
   DWORD dwCmdId,
   BOOL fBound
);

此方法,则当绑定到 “调用从快捷的代码段”命令的键更改时 (这是内部顺序对 Visual Studio 和不与 IntelliSense - AMP_GT 插入代码段 菜单命令)。 更改此特殊键绑定是的内部 Visual Studio 并且此事件通常是某点感兴趣的外部侦听器。 但是,在中,因为它是 IVsExpansionEvents 接口的一部分,必须实现该接口,但调用可由实现忽略。

此方法对于所有键绑定调用两次:第一,当一个命令是未绑定和第二,当新的命令绑定。

.NET Framework 安全性

请参阅

参考

IVsExpansionEvents 接口

Microsoft.VisualStudio.TextManager.Interop 命名空间