AtomicComposition.TryGetValue<T> Method (Object, Boolean, T%)

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

Namespace:  System.ComponentModel.Composition.Hosting
Assembly:  System.ComponentModel.Composition (in System.ComponentModel.Composition.dll)

public bool TryGetValue<T>(
	Object key,
	bool localAtomicCompositionOnly,
	out T value
)

Type Parameters

T

The type of the value to be retrieved.

Parameters

key
Type: System.Object
The key to retrieve from.
localAtomicCompositionOnly
Type: System.Boolean
true to exclude parent transactions; otherwise, false.
value
Type: T%
The retrieved value.

Return Value

Type: System.Boolean
true if the value was successfully retrieved; otherwise, false.

Silverlight

Supported in: 5, 4

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show: