Share via


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

See Also

Reference

ITextTemplatingSessionHost Interface

Microsoft.VisualStudio.TextTemplating Namespace