편집

다음을 통해 공유


AtomicComposition.TryGetValue Method

Definition

Gets a value saved by the SetValue(Object, Object) method.

Overloads

TryGetValue<T>(Object, T)

Gets a value saved by the SetValue(Object, Object) method.

TryGetValue<T>(Object, Boolean, T)

Gets a value saved by the SetValue(Object, Object) method, with the option of not searching parent transactions.

TryGetValue<T>(Object, T)

Source:
AtomicComposition.cs
Source:
AtomicComposition.cs
Source:
AtomicComposition.cs

Gets a value saved by the SetValue(Object, Object) method.

public:
generic <typename T>
 bool TryGetValue(System::Object ^ key, [Runtime::InteropServices::Out] T % value);
public bool TryGetValue<T> (object key, out T value);
member this.TryGetValue : obj * 'T -> bool
Public Function TryGetValue(Of T) (key As Object, ByRef value As T) As Boolean

Type Parameters

T

The type of the value to be retrieved.

Parameters

key
Object

The key to retrieve from.

value
T

The retrieved value.

Returns

true if the value was successfully retrieved; otherwise, false.

Applies to

TryGetValue<T>(Object, Boolean, T)

Source:
AtomicComposition.cs
Source:
AtomicComposition.cs
Source:
AtomicComposition.cs

Gets a value saved by the SetValue(Object, Object) method, with the option of not searching parent transactions.

public:
generic <typename T>
 bool TryGetValue(System::Object ^ key, bool localAtomicCompositionOnly, [Runtime::InteropServices::Out] T % value);
public bool TryGetValue<T> (object key, bool localAtomicCompositionOnly, out T value);
member this.TryGetValue : obj * bool * 'T -> bool
Public Function TryGetValue(Of T) (key As Object, localAtomicCompositionOnly As Boolean, ByRef value As T) As Boolean

Type Parameters

T

The type of the value to be retrieved.

Parameters

key
Object

The key to retrieve from.

localAtomicCompositionOnly
Boolean

true to exclude parent transactions; otherwise, false.

value
T

The retrieved value.

Returns

true if the value was successfully retrieved; otherwise, false.

Applies to