Lazy(T, TMetadata) Constructor

Lazy(Of T, TMetadata) Constructor

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

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method Lazy(Of T, TMetadata)(TMetadata) Initializes a new instance of the Lazy(Of T, TMetadata) class with the specified metadata.
Public method Lazy(Of T, TMetadata)(TMetadata, Boolean) Initializes a new instance of the Lazy(Of T, TMetadata) class with the specified metadata and thread safety mode.
Public method Lazy(Of T, TMetadata)(TMetadata, LazyThreadSafetyMode) Initializes a new instance of the Lazy(Of T, TMetadata) class with the specified metadata and thread safety mode.
Public method Lazy(Of T, TMetadata)(Func(Of T), TMetadata) Initializes a new instance of the Lazy(Of T, TMetadata) class with the specified metadata and factory for the referenced value.
Public method Lazy(Of T, TMetadata)(Func(Of T), TMetadata, Boolean) Initializes a new instance of the Lazy(Of T, TMetadata) class with the specified metadata, factory for the referenced value, and thread safety mode.
Public method Lazy(Of T, TMetadata)(Func(Of T), TMetadata, LazyThreadSafetyMode) Initializes a new instance of the Lazy(Of T, TMetadata) class with the specified metadata, factory for the referenced value, and thread safety mode.
Top

Show:
© 2017 Microsoft