Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Lazy<T, TMetadata> Constructor

 

Initializes a new instance of the Lazy<T, TMetadata> class.

Namespace:   System
Assembly:  System.ComponentModel.Composition (in System.ComponentModel.Composition.dll)

NameDescription
System_CAPS_pubmethodLazy<T, TMetadata>(TMetadata)

Initializes a new instance of the Lazy<T, TMetadata> class with the specified metadata.

System_CAPS_pubmethodLazy<T, TMetadata>(TMetadata, Boolean)

Initializes a new instance of the Lazy<T, TMetadata> class with the specified metadata and thread safety value.

System_CAPS_pubmethodLazy<T, TMetadata>(TMetadata, LazyThreadSafetyMode)

Initializes a new instance of the Lazy<T, TMetadata> class with the specified metadata and thread synchronization mode.

System_CAPS_pubmethodLazy<T, TMetadata>(Func<T>^, TMetadata)

Initializes a new instance of the Lazy<T, TMetadata> class with the specified metadata that uses the specified function to get the referenced object.

System_CAPS_pubmethodLazy<T, TMetadata>(Func<T>^, TMetadata, Boolean)

Initializes a new instance of the Lazy<T, TMetadata> class with the specified metadata and thread safety value that uses the specified function to get the referenced object.

System_CAPS_pubmethodLazy<T, TMetadata>(Func<T>^, TMetadata, LazyThreadSafetyMode)

Initializes a new instance of the Lazy<T, TMetadata> class with the specified metadata and thread synchronization mode that uses the specified function to get the referenced object.

Return to top
Show:
© 2017 Microsoft