Share via


SessionStoreCache Class

 

Maintains a cache of Stores during a T4 user session. Each Store is identified by a key string.

Namespace:   Microsoft.VisualStudio.TextTemplating.Modeling
Assembly:  Microsoft.VisualStudio.TextTemplating.Modeling.12.0 (in Microsoft.VisualStudio.TextTemplating.Modeling.12.0.dll)

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.TextTemplating.Modeling.SessionStoreCache

Syntax

public static class SessionStoreCache
public ref class SessionStoreCache abstract sealed 
[<AbstractClass>]
[<Sealed>]
type SessionStoreCache = class end
Public NotInheritable Class SessionStoreCache

Methods

Name Description
System_CAPS_pubmethodSystem_CAPS_static CacheSessionStore(String, Store)

Cache a Store with a given key string.

System_CAPS_pubmethodSystem_CAPS_static DisposeSessionStoreMap()

Dispose the cache and its Stores.

System_CAPS_pubmethodSystem_CAPS_static GetSessionStore(String)

Get the store identified by the given key, or null if the key is not found.

Remarks

This class supports only one session at a time.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.VisualStudio.TextTemplating.Modeling Namespace

Return to top