TransactionContext.TryGetValue<T> Method
Lookup the value associated with a specified key in the transaction context.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'Declaración
Public Function TryGetValue(Of T) ( _
key As Object, _
<OutAttribute> ByRef value As T _
) As Boolean
public bool TryGetValue<T>(
Object key,
out T value
)
public:
generic<typename T>
bool TryGetValue(
Object^ key,
[OutAttribute] T% value
)
member TryGetValue :
key:Object *
value:'T byref -> bool
JScript does not support generic types or methods.
Type Parameters
- T
The expected type of the value associated with the specified key
Parameters
- key
Type: System.Object
The key to lookup in the context
- value
Type: T%
Receives the value associated with the specified key, or the default value for T if the key is not found
Return Value
Type: System.Boolean
Whether or not the context contained a value with the specified key.
.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.