Bagikan melalui


SessionStoreCache Class

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

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.TextTemplating.Modeling.SessionStoreCache

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

Syntax

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

The SessionStoreCache type exposes the following members.

Methods

  Name Description
Public methodStatic member CacheSessionStore Cache a Store with a given key string.
Public methodStatic member DisposeSessionStoreMap Dispose the cache and its Stores.
Public methodStatic member GetSessionStore Get the store identified by the given key, or null if the key is not found.

Top

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

Reference

Microsoft.VisualStudio.TextTemplating.Modeling Namespace