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

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

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)

Syntax

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

Type Parameters

  • T
    The type of the value to be retrieved.

Parameters

  • 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.

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.