ModelingTextTransformation.OnSessionChanged 方法

命名空間:  Microsoft.VisualStudio.TextTemplating.VSHost
組件:  Microsoft.VisualStudio.TextTemplating.Modeling.10.0 (在 Microsoft.VisualStudio.TextTemplating.Modeling.10.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
)

參數

.NET Framework 安全性

請參閱

參考

ModelingTextTransformation 類別

Microsoft.VisualStudio.TextTemplating.VSHost 命名空間