Lazy(Of T, TMetadata) Constructor (Func(Of T), TMetadata, Boolean)
[ 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, _ isThreadSafe As Boolean _ )
Parameters
- valueFactory
- Type: System.Func(Of T)
A function that returns the referenced value.
- metadata
- Type: TMetadata
The metadata.
- isThreadSafe
- Type: System.Boolean
true to make this instance usable concurrently by multiple threads; false to make the instance usable by only one thread at a time.
Show: