Struct ContentReferenceLoadResult<TContent>
Record representing the result of loading content references into a cache.
Implements
IEquatable<ContentReferenceLoadResult<TContent>>
Namespace: Tableau.Migration.Content.Search
Assembly: Tableau.Migration.dll
Syntax
public readonly record struct ContentReferenceLoadResult<TContent> : IEquatable<ContentReferenceLoadResult<TContent>> where TContent : IContentReference
Type Parameters
| Name | Description |
|---|---|
| TContent | The content type. |
Constructors
ContentReferenceLoadResult(IImmutableList<TContent>)
Creates a new ContentReferenceLoadResult<TContent> object.
Declaration
public ContentReferenceLoadResult(IImmutableList<TContent> items)
Parameters
| Type | Name | Description |
|---|---|---|
| IImmutableList<TContent> | items | The found items. |
ContentReferenceLoadResult(IImmutableList<TContent>, bool)
Record representing the result of loading content references into a cache.
Declaration
public ContentReferenceLoadResult(IImmutableList<TContent> Items, bool IsSupported)
Parameters
| Type | Name | Description |
|---|---|---|
| IImmutableList<TContent> | Items | The items that were loaded. |
| bool | IsSupported | True if the search mode was supported by the store, otherwise false. |
Fields
Empty
The result for when the search mode was supported but did not find any results.
Declaration
public static ContentReferenceLoadResult<TContent> Empty
Field Value
| Type | Description |
|---|---|
| ContentReferenceLoadResult<TContent> |
Unsupported
The result for when the search mode was unsupported, leading to the load being canceled.
Declaration
public static ContentReferenceLoadResult<TContent> Unsupported
Field Value
| Type | Description |
|---|---|
| ContentReferenceLoadResult<TContent> |
Properties
IsSupported
True if the search mode was supported by the store, otherwise false.
Declaration
public bool IsSupported { get; init; }
Property Value
| Type | Description |
|---|---|
| bool |
Items
The items that were loaded.
Declaration
public IImmutableList<TContent> Items { get; init; }
Property Value
| Type | Description |
|---|---|
| IImmutableList<TContent> |