다음을 통해 공유


ModelBusEnabledTextTransformation.OnSessionChanged 메서드

제공된 세션이 마지막으로 기억된 세션과 다를 때마다 호출됩니다. 읽을 모델 파일의 새 스냅숏을 준비하기 위해 정적 modelbus 인스턴스를 지웁니다.

네임스페이스:  Microsoft.VisualStudio.TextTemplating.Modeling
어셈블리:  Microsoft.VisualStudio.TextTemplating.Modeling.12.0(Microsoft.VisualStudio.TextTemplating.Modeling.12.0.dll)

구문

‘선언
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
)

매개 변수

  • oldSession
    형식: ITextTemplatingSession
  • newSession
    형식: ITextTemplatingSession

.NET Framework 보안

참고 항목

참조

ModelBusEnabledTextTransformation 클래스

Microsoft.VisualStudio.TextTemplating.Modeling 네임스페이스