Udostępnij za pośrednictwem


Metoda ModelBusEnabledTextTransformation.OnSessionChanged —

Wywołana w każdym przypadku, gdy sesja znajduje się pod warunkiem że nie jest taka sama, jak ostatnia sesja zapamiętane.Czyści instancji modelbus statycznych do przygotowania do nową migawkę plików modelu do odczytu.

Przestrzeń nazw:  Microsoft.VisualStudio.TextTemplating.Modeling
Zestaw:  Microsoft.VisualStudio.TextTemplating.Modeling.11.0 (w Microsoft.VisualStudio.TextTemplating.Modeling.11.0.dll)

Składnia

'Deklaracja
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
)

Parametry

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

ModelBusEnabledTextTransformation Klasa

Przestrzeń nazw Microsoft.VisualStudio.TextTemplating.Modeling