Condividi tramite


ValidationContext.GetCache<T> Method

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)

Syntax

'Declaration
Public Function GetCache(Of T As {Class, New}) As T
public T GetCache<T>()
where T : class, new()
public:
generic<typename T>
where T : ref class, gcnew()
T GetCache()
member GetCache : unit -> 'T  when 'T : not struct, new()
JScript does not support generic types or methods.

Type Parameters

  • T
    A class with a parameterless constructor

Return Value

Type: T
The cache for the specified class.

.NET Framework Security

See Also

Reference

ValidationContext Class

GetCache Overload

Microsoft.VisualStudio.Modeling.Validation Namespace