ITextTemplatingSessionHost.CreateSession Method
Create a Session object that can be used to transmit information into a template. The new Session becomes the current Session.
Namespace: Microsoft.VisualStudio.TextTemplating
Assembly: Microsoft.VisualStudio.TextTemplating.Interfaces.10.0 (in Microsoft.VisualStudio.TextTemplating.Interfaces.10.0.dll)
Syntax
'Declaration
Function CreateSession As ITextTemplatingSession
ITextTemplatingSession CreateSession()
ITextTemplatingSession^ CreateSession()
abstract CreateSession : unit -> ITextTemplatingSession
function CreateSession() : ITextTemplatingSession
Return Value
Type: Microsoft.VisualStudio.TextTemplating.ITextTemplatingSession
A new Session
.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.