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

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets a value saved by the SetValue method.

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

Syntax

'Declaration
Public Function TryGetValue(Of T) ( _
    key As Object, _
    <OutAttribute> ByRef value As T _
) As Boolean
public bool TryGetValue<T>(
    Object key,
    out T value
)

Type Parameters

  • T
    The type of the value to be retrieved.

Parameters

  • value
    Type: T%
    The retrieved value.

Return Value

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

Version Information

Silverlight

Supported in: 5, 4

Platforms

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