Lazy<'T, 'TMetadata> Class

 

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

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

System.Object
  System.Lazy<'T>
    System.Lazy<'T, 'TMetadata>

[<SerializableAttribute>]
type Lazy<'T, 'TMetadata> = 
    class
        inherit Lazy<'T>
    end

Type Parameters

T

The type of the object referenced.

TMetadata

The type of the metadata.

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.

NameDescription
System_CAPS_pubpropertyIsValueCreated

Gets a value that indicates whether a value has been created for this Lazy<'T> instance.(Inherited from Lazy<'T>.)

System_CAPS_pubpropertyMetadata

Gets the metadata associated with the referenced object.

System_CAPS_pubpropertyValue

Gets the lazily initialized value of the current Lazy<'T> instance.(Inherited from Lazy<'T>.)

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Creates and returns a string representation of the Lazy<'T>.Value property for this instance.(Inherited from Lazy<'T>.)

Universal Windows Platform
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.

Return to top
Show: