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
- name
Type: System.String
- outValue
Type: T%
Return Value
Type: System.Boolean
Permissions
- 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.