Lazy<T,TMetadata> Sınıf
Tanım
, Managed Extensibility Framework tarafından kullanılmak üzere bir nesneye ve onunla ilişkili meta veriye geç dolaylı bir başvuru sağlar.Provides a lazy indirect reference to an object and its associated metadata for use by the Managed Extensibility Framework.
generic <typename T, typename TMetadata>
public ref class Lazy : Lazy<T>
public class Lazy<T,TMetadata> : Lazy<T>
[System.Serializable]
public class Lazy<T,TMetadata> : Lazy<T>
type Lazy<'T, 'Metadata> = class
inherit Lazy<'T>
[<System.Serializable>]
type Lazy<'T, 'Metadata> = class
inherit Lazy<'T>
Public Class Lazy(Of T, TMetadata)
Inherits Lazy(Of T)
Tür Parametreleri
- T
Başvurulan nesnenin türü.The type of the object referenced.
- TMetadata
Meta veri türü.The type of the metadata.
- Devralma
- Öznitelikler
Oluşturucular
Lazy<T,TMetadata>(Func<T>, TMetadata) |
Lazy<T,TMetadata>Başvurulan nesneyi almak için belirtilen işlevi kullanan belirtilen meta veriler ile sınıfın yeni bir örneğini başlatır.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) |
Lazy<T,TMetadata>Başvurulan nesneyi almak için belirtilen işlevi kullanan belirtilen meta veri ve iş parçacığı güvenlik değeriyle sınıfın yeni bir örneğini başlatır.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) |
Lazy<T,TMetadata>Başvurulan nesneyi almak için belirtilen işlevi kullanan belirtilen meta veri ve iş parçacığı eşitleme moduyla sınıfının yeni bir örneğini başlatır.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. |
Lazy<T,TMetadata>(TMetadata) |
Belirtilen meta verilerle sınıfının yeni bir örneğini başlatır Lazy<T,TMetadata> .Initializes a new instance of the Lazy<T,TMetadata> class with the specified metadata. |
Lazy<T,TMetadata>(TMetadata, Boolean) |
Lazy<T,TMetadata>Belirtilen meta veri ve iş parçacığı güvenliği değeri ile sınıfın yeni bir örneğini başlatır.Initializes a new instance of the Lazy<T,TMetadata> class with the specified metadata and thread safety value. |
Lazy<T,TMetadata>(TMetadata, LazyThreadSafetyMode) |
Lazy<T,TMetadata>Belirtilen meta veri ve iş parçacığı eşitleme moduyla sınıfının yeni bir örneğini başlatır.Initializes a new instance of the Lazy<T,TMetadata> class with the specified metadata and thread synchronization mode. |
Özellikler
IsValueCreated |
Bu örnek için bir değer oluşturulup oluşturulmayacağını gösteren bir değer alır Lazy<T> .Gets a value that indicates whether a value has been created for this Lazy<T> instance. (Devralındığı yer: Lazy<T>) |
Metadata |
Başvurulan nesneyle ilişkili meta verileri alır.Gets the metadata associated with the referenced object. |
Value |
Geçerli örneğin geç Initialized değerini alır Lazy<T> .Gets the lazily initialized value of the current Lazy<T> instance. (Devralındığı yer: Lazy<T>) |
Yöntemler
Equals(Object) |
Belirtilen nesnenin geçerli nesneye eşit olup olmadığını belirler.Determines whether the specified object is equal to the current object. (Devralındığı yer: Object) |
GetHashCode() |
Varsayılan karma işlevi olarak işlev görür.Serves as the default hash function. (Devralındığı yer: Object) |
GetType() |
TypeGeçerli örneği alır.Gets the Type of the current instance. (Devralındığı yer: Object) |
MemberwiseClone() |
Geçerli bir basit kopyasını oluşturur Object .Creates a shallow copy of the current Object. (Devralındığı yer: Object) |
ToString() |
Bu örnek için özelliğin dize gösterimini oluşturur ve döndürür Value .Creates and returns a string representation of the Value property for this instance. (Devralındığı yer: Lazy<T>) |