Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

TextTemplatingSession Class

Definition

Namespace:
Microsoft.VisualStudio.TextTemplating
Assembly:
Microsoft.VisualStudio.TextTemplating.14.0.dll
Assembly:
Microsoft.VisualStudio.TextTemplating.15.0.dll
Assembly:
Microsoft.VisualStudio.TextTemplating.dll
Package:
Microsoft.VisualStudio.TextTemplating v17.10.40170

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Trivial implementation of text transformation session interface

public ref class TextTemplatingSession sealed : System::Collections::Generic::Dictionary<System::String ^, System::Object ^>, IEquatable<Guid>, IEquatable<Microsoft::VisualStudio::TextTemplating::ITextTemplatingSession ^>, Microsoft::VisualStudio::TextTemplating::ITextTemplatingSession, System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>>, System::Collections::Generic::IDictionary<System::String ^, System::Object ^>, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>>, System::Runtime::Serialization::ISerializable
[System.Serializable]
public sealed class TextTemplatingSession : System.Collections.Generic.Dictionary<string,object>, IEquatable<Guid>, IEquatable<Microsoft.VisualStudio.TextTemplating.ITextTemplatingSession>, Microsoft.VisualStudio.TextTemplating.ITextTemplatingSession, System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string,object>>, System.Collections.Generic.IDictionary<string,object>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object>>, System.Runtime.Serialization.ISerializable
[<System.Serializable>]
type TextTemplatingSession = class
 inherit Dictionary<string, obj>
 interface ITextTemplatingSession
 interface IEquatable<ITextTemplatingSession>
 interface IEquatable<Guid>
 interface IDictionary<string, obj>
 interface ICollection<KeyValuePair<string, obj>>
 interface seq<KeyValuePair<string, obj>>
 interface IEnumerable
 interface ISerializable
Public NotInheritable Class TextTemplatingSession
Inherits Dictionary(Of String, Object)
Implements ICollection(Of KeyValuePair(Of String, Object)), IDictionary(Of String, Object), IEnumerable(Of KeyValuePair(Of String, Object)), IEquatable(Of Guid), IEquatable(Of ITextTemplatingSession), ISerializable, ITextTemplatingSession
Inheritance
TextTemplatingSession
Attributes
Implements

Constructors

Name Description
TextTemplatingSession()

Basic constructor that creates a unique Id.

TextTemplatingSession(Guid)

Constructor to allow a specific Id to be used

Properties

Name Description
Id

The identity of the session

Methods

Name Description
Equals(Guid)

Compares the Id of this TextTemplatingSession with another ITextTemplatingSession

Equals(ITextTemplatingSession)

Compares this TextTemplatingSession with another ITextTemplatingSession

Equals(Object)

Compares this TextTemplatingSession with another object

GetHashCode()

Use the hash of the Id as it's hash code.

Explicit Interface Implementations

Name Description
ISerializable.GetObjectData(SerializationInfo, StreamingContext)
Obsolete.

Serialize the object

Extension Methods

Name Description
AddRange<TKey,TValue>(IDictionary<TKey,TValue>, IDictionary<TKey,TValue>, Boolean)

Add one dictionary content to the another dictionary

EmptyIfNull<T>(IEnumerable<T>)

Return this enumeration in case it is not null. In case it is null return empty enumeration.

GetOrDefault<TK,TV>(IDictionary<TK,TV>, TK)

Gets a value by the given key.

Applies to