ModelBusEnabledTextTransformation.OnSessionChanged-Methode

Wird immer dann aufgerufen, wenn eine Sitzung bereitgestellt wird, die nicht der zuletzt gespeicherten Sitzung entspricht. Löscht die statische ModelBus-Instanz, um das Lesen einer neuen Momentaufnahme von Modelldateien vorzubereiten.

Namespace:  Microsoft.VisualStudio.TextTemplating.Modeling
Assembly:  Microsoft.VisualStudio.TextTemplating.Modeling.10.0 (in Microsoft.VisualStudio.TextTemplating.Modeling.10.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
)

Parameter

.NET Framework-Sicherheit

Siehe auch

Referenz

ModelBusEnabledTextTransformation Klasse

Microsoft.VisualStudio.TextTemplating.Modeling-Namespace