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

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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
)

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.

Type Parameters

T

The type of the value to be retrieved.

.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 4.0
Return to top
Show: