Lazy<(Of <(T, TMetadata>)>) Constructor (Func<(Of <(T>)>), TMetadata)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Initializes a new instance of the Lazy<(Of <(T, TMetadata>)>) class with the specified metadata and factory for the referenced value.

Namespace:  System
Assembly:  mscorlib.Extensions (in mscorlib.Extensions.dll)

Syntax

Public Sub New ( _
    valueFactory As Func(Of T), _
    metadata As TMetadata _
)
public Lazy(
    Func<T> valueFactory,
    TMetadata metadata
)

Parameters

  • valueFactory
    Type: System..::.Func<(Of <(T>)>)
    A function that returns the referenced value.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0

See Also

Reference

Lazy<(Of <(T, TMetadata>)>) Class

Lazy<(Of <(T, TMetadata>)>) Overload

System Namespace