IVsExpansionClient.OnAfterInsertion 方法

调用代码段后插入已设置为。

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

语法

声明
Function OnAfterInsertion ( _
    pSession As IVsExpansionSession _
) As Integer
int OnAfterInsertion(
    IVsExpansionSession pSession
)
int OnAfterInsertion(
    IVsExpansionSession^ pSession
)
abstract OnAfterInsertion : 
        pSession:IVsExpansionSession -> int
function OnAfterInsertion(
    pSession : IVsExpansionSession
) : int

参数

返回值

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

备注

COM 签名

从 textmgr2.idl:

HRESULT IVsExpansionClient::OnAfterInsertion(
   IVsExpansionSession *pSession
);

,在代码段的特定编辑模式启动之前,此方法在代码段后调用插入已格式化,但。 如果给定 IVsExpansionSession 对象,请使用它仅用于收集有关插入代码段的信息或重写默认字段值。 剩余方法仅供特殊编辑模式使用。

.NET Framework 安全性

请参阅

参考

IVsExpansionClient 接口

Microsoft.VisualStudio.TextManager.Interop 命名空间