Lazy(Of T, TMetadata) Constructor (Func(Of T), TMetadata, LazyThreadSafetyMode)
[ 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, factory for the referenced value, and thread safety mode.
Assembly: mscorlib.Extensions (in mscorlib.Extensions.dll)
'Declaration Public Sub New ( _ valueFactory As Func(Of T), _ metadata As TMetadata, _ mode As LazyThreadSafetyMode _ )
Parameters
- valueFactory
- Type: System.Func(Of T)
A function that returns the referenced value.
- metadata
- Type: TMetadata
The metadata.
- mode
- Type: System.Threading.LazyThreadSafetyMode
The thread-safety mode.
Show: