Link<T> Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
Type Parameters
- T
The type of the elements in the deferred source.
- Inheritance
Remarks
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.
Constructors
Link<T>(IEnumerable<T>) |
Initializes a new instance of the Link<T> structure by referencing the source. |
Link<T>(Link<T>) |
Initializes a new instance of the Link<T> structure by copying the internal state from another Link<T> instance. |
Link<T>(T) |
Initializes a new instance of the Link<T> structure by referencing the value of the property. |
Properties
HasLoadedOrAssignedValue |
Specifies whether the Link<T> has loaded or assigned a value. |
HasValue |
Gets a value that specifies whether the source has a value. |
Value |
Gets or sets the value assigned to or loaded by the Link<T>. |
Applies to
See also
.NET
フィードバック
https://aka.ms/ContentUserFeedback。
近日公開予定: 2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub イシューを段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、以下を参照してください:フィードバックの送信と表示