此 API 支持 .NET Framework 基础结构,不适合在代码中直接使用。
确定键是否必须为 “调用从快捷的代码段”命令。
命名空间: Microsoft.VisualStudio.TextManager.Interop
程序集: Microsoft.VisualStudio.TextManager.Interop.8.0(在 Microsoft.VisualStudio.TextManager.Interop.8.0.dll 中)
语法
声明
Function GetSnippetShortCutKeybindingState ( _
<OutAttribute> ByRef fBound As Integer _
) As Integer
int GetSnippetShortCutKeybindingState(
out int fBound
)
int GetSnippetShortCutKeybindingState(
[OutAttribute] int% fBound
)
abstract GetSnippetShortCutKeybindingState :
fBound:int byref -> int
function GetSnippetShortCutKeybindingState(
fBound : int
) : int
参数
fBound
类型:Int32%[out] 返回非零 (TRUE),如果键绑定;否则,返回零 (0)FALSE)。
返回值
类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。
备注
COM 签名
从 textmgr2.idl:
HRESULT GetSnippetShortCutKeybindingState(
[out] BOOL *fBound
);
这仅供内部使用由 Visual Studio。 请注意 “调用从快捷的代码段”命令不对应 IntelliSense 插入代码段 菜单命令。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。