Share via


TextTransformation.Session Property

Gets or sets the current session. A session represents a series of transformations that are executed within the same user command. The session object can be used to transmit information into the code of a text template.

Namespace:  Microsoft.VisualStudio.TextTemplating
Assembly:  Microsoft.VisualStudio.TextTemplating.11.0 (in Microsoft.VisualStudio.TextTemplating.11.0.dll)

Syntax

'Declaration
Public Overridable Property Session As IDictionary(Of String, Object)
public virtual IDictionary<string, Object> Session { get; set; }
public:
virtual property IDictionary<String^, Object^>^ Session {
    IDictionary<String^, Object^>^ get ();
    void set (IDictionary<String^, Object^>^ value);
}
abstract Session : IDictionary<string, Object> with get, set 
override Session : IDictionary<string, Object> with get, set
function get Session () : IDictionary<String, Object>
function set Session (value : IDictionary<String, Object>)

Property Value

Type: IDictionary<String, Object>
A dictionary that maps key strings to arbitrary objects.

.NET Framework Security

See Also

Reference

TextTransformation Class

Microsoft.VisualStudio.TextTemplating Namespace