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
- name
Type: System.String
Name of the cache
- outValue
Type: T%
Return Value
Type: System.Boolean
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.