Class NovaRazorObject<T>
A base class for proxies for a Noxum.Nova.Data.Cache.CachedObject to be used in Razor Views
Inheritance
NovaRazorObject<T>
Inherited Members
Namespace: Noxum.Nova.Razor.Model
Assembly: Noxum.Nova.Razor.Model.dll
Syntax
public class NovaRazorObject<T> : NovaRazorObject, IReadOnlyCollection<NovaRazorValue>, IEnumerable<NovaRazorValue>, IEnumerable where T : CachedObject
Type Parameters
| Name | Description |
|---|---|
| T |
Methods
GetDescriptionAsync(ObjId)
Get the localized description for an object including language fallbacks
Declaration
public Task<string> GetDescriptionAsync(ObjId preferredLangId = default)
Parameters
| Type | Name | Description |
|---|---|---|
| ObjId | preferredLangId | The preferred language. If Zero (0), the default output language is used. |
Returns
| Type | Description |
|---|---|
| Task<string> | The description for the preferred output language or null if there is no description |
GetDisplayIconUrlAsync()
Get the display Icon as an URL
Declaration
public override Task<string> GetDisplayIconUrlAsync()
Returns
| Type | Description |
|---|---|
| Task<string> | An Uri for the display icon or null if an icon is not available |
Overrides
GetDisplayNameAsync(ObjId)
Get the object's display name.
Declaration
public override Task<string> GetDisplayNameAsync(ObjId langId = default)
Parameters
| Type | Name | Description |
|---|---|---|
| ObjId | langId | The language ID. If Zero (0), the current output language is used. |
Returns
| Type | Description |
|---|---|
| Task<string> | The display name including fallbacks |