Export (0) Print
Expand All

ITextTemplatingSession Interface

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

Namespace:  Microsoft.VisualStudio.TextTemplating
Assembly:  Microsoft.VisualStudio.TextTemplating.Interfaces.10.0 (in Microsoft.VisualStudio.TextTemplating.Interfaces.10.0.dll)

[CLSCompliantAttribute(true)]
public interface ITextTemplatingSession : IEquatable<ITextTemplatingSession>, 
	IEquatable<Guid>, IDictionary<string, Object>, ICollection<KeyValuePair<string, Object>>, 
	IEnumerable<KeyValuePair<string, Object>>, IEnumerable, ISerializable

The ITextTemplatingSession type exposes the following members.

  NameDescription
Public propertyCountGets the number of elements contained in the ICollection. (Inherited from ICollection<KeyValuePair<String, Object>>.)
Public propertyIdIdentity of this session, used to compare session instances by value.
Public propertyIsReadOnlyGets a value indicating whether the ICollection is read-only. (Inherited from ICollection<KeyValuePair<String, Object>>.)
Public propertyItemGets or sets the element with the specified key. (Inherited from IDictionary<String, Object>.)
Public propertyKeysGets an ICollection containing the keys of the IDictionary. (Inherited from IDictionary<String, Object>.)
Public propertyValuesGets an ICollection containing the values in the IDictionary. (Inherited from IDictionary<String, Object>.)
Top

  NameDescription
Public methodAdd(UTP)Adds an item to the ICollection. (Inherited from ICollection<KeyValuePair<String, Object>>.)
Public methodAdd(UTP, UTP)Adds an element with the provided key and value to the IDictionary. (Inherited from IDictionary<String, Object>.)
Public methodClearRemoves all items from the ICollection. (Inherited from ICollection<KeyValuePair<String, Object>>.)
Public methodContainsDetermines whether the ICollection contains a specific value. (Inherited from ICollection<KeyValuePair<String, Object>>.)
Public methodContainsKeyDetermines whether the IDictionary contains an element with the specified key. (Inherited from IDictionary<String, Object>.)
Public methodCopyToCopies the elements of the ICollection to an Array, starting at a particular Array index. (Inherited from ICollection<KeyValuePair<String, Object>>.)
Public methodEquals(UTP)Indicates whether the current object is equal to another object of the same type. (Inherited from IEquatable<Guid>.)
Public methodEquals(UTP) (Inherited from IEquatable<ITextTemplatingSession>.)
Public methodGetEnumeratorReturns an enumerator that iterates through the collection. (Inherited from IEnumerable<KeyValuePair<String, Object>>.)
Public methodGetObjectDataSecurity Critical. Populates a SerializationInfo with the data needed to serialize the target object. (Inherited from ISerializable.)
Public methodRemove(UTP)Removes the element with the specified key from the IDictionary. (Inherited from IDictionary<String, Object>.)
Public methodRemove(UTP)Removes the first occurrence of a specific object from the ICollection. (Inherited from ICollection<KeyValuePair<String, Object>>.)
Public methodTryGetValueGets the value associated with the specified key. (Inherited from IDictionary<String, Object>.)
Top

Sessions are objects serialized across application domains and processes. They have dictionary behavior to allow parameters to be passed into the T4 engine. They are compared by comparing their GUID-based ID property to allow different implementation types to be directly compared.

Show:
© 2014 Microsoft