ValidationContext.TryGetCacheValue<T> Generic Method

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

Syntax

'宣言
Public Function TryGetCacheValue(Of T As {Class, New}) ( _
    name As String, _
    <OutAttribute> ByRef outValue As T _
) As Boolean
'使用
Dim instance As ValidationContext
Dim name As String
Dim outValue As T
Dim returnValue As Boolean

returnValue = instance.TryGetCacheValue(name, _
    outValue)
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
)
JScript does not support generic types or methods.

Type Parameters

  • T

Parameters

  • outValue
    Type: T%

Return Value

Type: System.Boolean

Permissions

See Also

Reference

ValidationContext Class

ValidationContext Members

Microsoft.VisualStudio.Modeling.Validation Namespace