调用代码段后插入已设置为。
命名空间: 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
参数
pSession
类型:Microsoft.VisualStudio.TextManager.Interop.IVsExpansionSession[in] 包含有关插入的代码段的 IVsExpansionSession 的对象。 这是一个 null 值。
返回值
类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。
备注
COM 签名
从 textmgr2.idl:
HRESULT IVsExpansionClient::OnAfterInsertion(
IVsExpansionSession *pSession
);
,在代码段的特定编辑模式启动之前,此方法在代码段后调用插入已格式化,但。 如果给定 IVsExpansionSession 对象,请使用它仅用于收集有关插入代码段的信息或重写默认字段值。 剩余方法仅供特殊编辑模式使用。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。