ModelingTextTransformation.OnSessionChanged 方法

命名空间:  Microsoft.VisualStudio.TextTemplating.VSHost
程序集:  Microsoft.VisualStudio.TextTemplating.Modeling.12.0(在 Microsoft.VisualStudio.TextTemplating.Modeling.12.0.dll 中)

语法

声明
Protected Overridable Sub OnSessionChanged ( _
    oldSession As ITextTemplatingSession, _
    newSession As ITextTemplatingSession _
)
protected virtual void OnSessionChanged(
    ITextTemplatingSession oldSession,
    ITextTemplatingSession newSession
)
protected:
virtual void OnSessionChanged(
    ITextTemplatingSession^ oldSession, 
    ITextTemplatingSession^ newSession
)
abstract OnSessionChanged : 
        oldSession:ITextTemplatingSession * 
        newSession:ITextTemplatingSession -> unit  
override OnSessionChanged : 
        oldSession:ITextTemplatingSession * 
        newSession:ITextTemplatingSession -> unit
protected function OnSessionChanged(
    oldSession : ITextTemplatingSession, 
    newSession : ITextTemplatingSession
)

参数

  • oldSession
    类型:ITextTemplatingSession
  • newSession
    类型:ITextTemplatingSession

.NET Framework 安全性

请参阅

参考

ModelingTextTransformation 类

Microsoft.VisualStudio.TextTemplating.VSHost 命名空间