Lazy(T, TMetadata) Constructor (Func(T), TMetadata)

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)

'Declaration
Public Sub New ( _
	valueFactory As Func(Of T), _
	metadata As TMetadata _
)

Parameters

valueFactory
Type: System.Func(Of T)
A function that returns the referenced value.
metadata
Type: TMetadata
The metadata.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft