ModelingTextTransformation.OnSessionChanged 方法
命名空间: Microsoft.VisualStudio.TextTemplating.VSHost
程序集: Microsoft.VisualStudio.TextTemplating.Modeling.11.0(在 Microsoft.VisualStudio.TextTemplating.Modeling.11.0.dll 中)
语法
声明
Protected Overridable Sub OnSessionChanged ( _
oldSession As ITextTemplatingSession, _
newSession As ITextTemplatingSession _
)
protected virtual void OnSessionChanged(
ITextTemplatingSession oldSession,
ITextTemplatingSession newSession
)
protected:
virtual void OnSessionChanged(
ITextTemplatingSession^ oldSession,
ITextTemplatingSession^ newSession
)
abstract OnSessionChanged :
oldSession:ITextTemplatingSession *
newSession:ITextTemplatingSession -> unit
override OnSessionChanged :
oldSession:ITextTemplatingSession *
newSession:ITextTemplatingSession -> unit
protected function OnSessionChanged(
oldSession : ITextTemplatingSession,
newSession : ITextTemplatingSession
)
参数
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。