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

Gets a value saved by the SetValue method.

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

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

Type Parameters

T

The type of the value to be retrieved.

Parameters

key
Type: System.Object

The key to retrieve from.

value
Type: T

The retrieved value.

Return Value

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

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4

Portable Class Library

Supported in: Portable Class Library
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft