Share via


ValidationContext.GetCache<T> Method

Gets the cache for the specified class.

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

Syntax

'Declaration
Public Function GetCache(Of T As {Class, New}) As T
'Usage
Dim instance As ValidationContext 
Dim returnValue As T

returnValue = instance.GetCache()
public T GetCache<T>()
where T : class, new()
public:
generic<typename T>
where T : ref class, gcnew()
T GetCache()
JScript does not support generic types or methods.

Type Parameters

  • T

Return Value

Type: T
The cache for the specified class.

.NET Framework Security

See Also

Reference

ValidationContext Class

ValidationContext Members

GetCache Overload

Microsoft.VisualStudio.Modeling.Validation Namespace