ValidationContext::GetCache<T> Method (String^)

 

Gets the cache for the specified class.

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

public:
generic<typename T>
where T : ref class, gcnew()
T GetCache(
	String^ name
)

Parameters

name
Type: System::String^

The name of the cache.

Return Value

Type: T

The 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.

Return to top
Show: