Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Called whenever a session is provided that isn't the same as the last remembered session. Clears the static modelbus instance to prepare for a new snapshot of model files to be read.
Namespace:  Microsoft.VisualStudio.TextTemplating.Modeling
Assembly:  Microsoft.VisualStudio.TextTemplating.Modeling.12.0 (in Microsoft.VisualStudio.TextTemplating.Modeling.12.0.dll)
Syntax
'Declaration
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
)
Parameters
- oldSession
 Type: ITextTemplatingSession
- newSession
 Type: ITextTemplatingSession
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.