ValidationContext.TryGetCacheValue<T> Method

Returns whether the cached object associated with the name exist or not

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

Syntax

'Declaração
Public Function TryGetCacheValue(Of T As {Class, New}) ( _
    name As String, _
    <OutAttribute> ByRef outValue As T _
) As Boolean
public bool TryGetCacheValue<T>(
    string name,
    out T outValue
)
where T : class, new()
public:
generic<typename T>
where T : ref class, gcnew()
bool TryGetCacheValue(
    String^ name, 
    [OutAttribute] T% outValue
)
member TryGetCacheValue : 
        name:string * 
        outValue:'T byref -> bool  when 'T : not struct, new()
JScript does not support generic types or methods.

Type Parameters

  • T

Parameters

  • outValue
    Type: T%

Return Value

Type: System.Boolean

.NET Framework Security

See Also

Reference

ValidationContext Class

Microsoft.VisualStudio.Modeling.Validation Namespace