Lazy<T,TMetadata> Class

Definition

Provides a lazy indirect reference to an object and its associated metadata for use by the Managed Extensibility Framework.

public class Lazy<T,TMetadata> : Lazy<T>
Type Parameters
T

The type of the object referenced.

TMetadata

The type of the metadata.

Inheritance
Lazy<T,TMetadata>

Inherited Members

System.Lazy`1

System.Object

Constructors

Lazy<T,TMetadata>(TMetadata)

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

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

Lazy<T,TMetadata>(TMetadata, Boolean)

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

Lazy<T,TMetadata>(TMetadata, LazyThreadSafetyMode)

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

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

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

Properties

Metadata

Gets the metadata associated with the referenced object.