Link<T> Estructura
Definición
Se usa para habilitar la carga aplazada de propiedades individuales (similar a EntityRef<TEntity>).Used to enable deferred loading of individual properties (similar to EntityRef<TEntity>).
generic <typename T>
public value class Link
public struct Link<T>
type Link<'T> = struct
Public Structure Link(Of T)
Parámetros de tipo
- T
Tipo de elementos del origen aplazado.The type of the elements in the deferred source.
- Herencia
Comentarios
Si asigna un origenIEnumerable<T>aplazado () a Link<T>, Link<T> carga el valor enumerando el origen la primera vez que se tiene Value acceso a la propiedad.If you assign a deferred source (IEnumerable<T>) to Link<T>, Link<T> loads the value by enumerating the source the first time the Value property is accessed.
Constructores
Link<T>(IEnumerable<T>) |
Inicializa una nueva instancia de la estructura Link<T> haciendo referencia al origen.Initializes a new instance of the Link<T> structure by referencing the source. |
Link<T>(Link<T>) |
Inicializa una nueva instancia de la estructura Link<T> copiando el estado interno de otra instancia de Link<T>.Initializes a new instance of the Link<T> structure by copying the internal state from another Link<T> instance. |
Link<T>(T) |
Inicializa una nueva instancia de la estructura Link<T> haciendo referencia al valor de propiedad.Initializes a new instance of the Link<T> structure by referencing the value of the property. |
Propiedades
HasLoadedOrAssignedValue |
Especifica si Link<T> ha cargado o asignado un valor.Specifies whether the Link<T> has loaded or assigned a value. |
HasValue |
Obtiene un valor que especifica si el origen tiene un valor.Gets a value that specifies whether the source has a value. |
Value |
Obtiene o establece el valor asignado al Link<T> o cargado por él.Gets or sets the value assigned to or loaded by the Link<T>. |