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 安全性

请参见

参考

ModelBusEnabledTextTransformation 类

Microsoft.VisualStudio.TextTemplating.Modeling 命名空间