Lazy(Of T, TMetadata) Class
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Provides an extension of the Lazy(Of T) class with support for metadata.
Assembly: mscorlib.Extensions (in mscorlib.Extensions.dll)
The Lazy(Of T, TMetadata) type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Lazy(Of T, TMetadata)(TMetadata) | Initializes a new instance of the Lazy(Of T, TMetadata) class with the specified metadata. |
![]() | 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. |
![]() | 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. |
![]() | 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. |
![]() | 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. |
![]() | 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. |
| Name | Description | |
|---|---|---|
![]() | IsValueCreated | Gets a value that indicates whether a value has been created for this Lazy(Of T) instance. (Inherited from Lazy(Of T).) |
![]() | Metadata | Gets or sets the metadata associated with the referenced value. |
![]() | Value | Gets the lazily initialized value of the current Lazy(Of T) instance. (Inherited from Lazy(Of T).) |
| 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 the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Creates and returns a string representation of the Lazy(Of T).Value property for this instance. (Inherited from Lazy(Of T).) |
For more information about lazy initialization, see Lazy(Of T).
Show:


