ValidationContext::GetCache<T> Method (String^)
Visual Studio 2015
Gets the cache for the specified class.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
Parameters
- name
-
Type:
System::String^
The name of the cache.
Return Value
Type: TThe cache for the specified class.
Type Parameters
- T
A class with a parameterless constructor
When you provide the name for a cache, another cache is created, and it uses the specific name that you gave it. Therefore, you can have more than one cache for the same class.
Show: