ModelBusEnabledTextTransformation.OnSessionChanged Method (ITextTemplatingSession, ITextTemplatingSession)

 

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

protected override void OnSessionChanged(
    ITextTemplatingSession oldSession,
    ITextTemplatingSession newSession
)
protected:
virtual void OnSessionChanged(
    ITextTemplatingSession^ oldSession,
    ITextTemplatingSession^ newSession
) override
override OnSessionChanged : 
        oldSession:ITextTemplatingSession *
        newSession:ITextTemplatingSession -> unit
Protected Overrides Sub OnSessionChanged (
    oldSession As ITextTemplatingSession,
    newSession As ITextTemplatingSession
)

Parameters

See Also

ModelBusEnabledTextTransformation Class
Microsoft.VisualStudio.TextTemplating.Modeling Namespace

Return to top