Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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.11.0 (in Microsoft.VisualStudio.TextTemplating.Modeling.11.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: Microsoft.VisualStudio.TextTemplating.ITextTemplatingSession
- newSession
Type: Microsoft.VisualStudio.TextTemplating.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.