Lazy<T, TMetadata> Class
Provides a lazy indirect reference to an object and its associated metadata for use by the Managed Extensibility Framework.
Assembly: System.ComponentModel.Composition (in System.ComponentModel.Composition.dll)
Name | Description | |
---|---|---|
Lazy<T, TMetadata>(TMetadata) | Initializes a new instance of the Lazy<T, TMetadata> class with the specified metadata. | |
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) | 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>(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. |
Name | Description | |
---|---|---|
IsValueCreated | ||
Metadata | Gets the metadata associated with the referenced object. | |
Value |
Name | Description | |
---|---|---|
Equals(Object) | Determines whether the specified object is equal to the current object.(Inherited from Object.) | |
Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) | |
GetHashCode() | Serves as the default hash function. (Inherited from Object.) | |
GetType() | ||
MemberwiseClone() | ||
ToString() | Creates and returns a string representation of the Lazy<T>.Value property for this instance.(Inherited from Lazy<T>.) |
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 4.0
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.