ModelBusEnabledTextTransformation.OnSessionChanged 方法
只要提供的会话与上次记住的会话不同即会调用。 清除静态 modelbus 实例以准备要读取的模型文件的新快照。
命名空间: Microsoft.VisualStudio.TextTemplating.Modeling
程序集: Microsoft.VisualStudio.TextTemplating.Modeling.10.0(在 Microsoft.VisualStudio.TextTemplating.Modeling.10.0.dll 中)
语法
声明
Protected Overrides Sub OnSessionChanged ( _
oldSession As ITextTemplatingSession, _
newSession As ITextTemplatingSession _
)
protected override void OnSessionChanged(
ITextTemplatingSession oldSession,
ITextTemplatingSession newSession
)
protected:
virtual void OnSessionChanged(
ITextTemplatingSession^ oldSession,
ITextTemplatingSession^ newSession
) override
abstract OnSessionChanged :
oldSession:ITextTemplatingSession *
newSession:ITextTemplatingSession -> unit
override OnSessionChanged :
oldSession:ITextTemplatingSession *
newSession:ITextTemplatingSession -> unit
protected override function OnSessionChanged(
oldSession : ITextTemplatingSession,
newSession : ITextTemplatingSession
)
参数
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。