Note

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

Access to this page requires authorization. You can try .

ITextTemplatingSession Interface

Definition

Namespace:
Microsoft.VisualStudio.TextTemplating
Assembly:
Microsoft.VisualStudio.TextTemplating.Interfaces.10.0.dll
Package:
Microsoft.VisualStudio.TextTemplating.Interfaces.10.0 v17.0.32112.339

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.

Can be used to transmit information from a directive processor into a text template.

public interface class ITextTemplatingSession : IEquatable<Guid>, IEquatable<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.CLSCompliant(true)]
public interface ITextTemplatingSession : IEquatable<Guid>, IEquatable<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.CLSCompliant(true)>]
type ITextTemplatingSession = interface
 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 Interface ITextTemplatingSession
Implements ICollection(Of KeyValuePair(Of String, Object)), IDictionary(Of String, Object), IEnumerable(Of KeyValuePair(Of String, Object)), IEquatable(Of Guid), IEquatable(Of ITextTemplatingSession), ISerializable
Derived
Attributes
Implements

Properties

Name Description
Id

Identity of this session, used to compare session instances by value.

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