WebContextViewModel¶
View-model shape for the round-trip web-context form rendered by WebContextExtensions.RenderWebContext, carrying the context id/value and whether the context box should be visibly shown.
Purpose¶
- View-model shape for the round-trip web-context form rendered by
WebContextExtensions.RenderWebContext, carrying the context id/value and whether the context box should be visibly shown.
Context¶
- Namespace:
SAIF.Web.Mvc.ViewModels - Assembly/package:
SAIF.Framework.Web.Mvc (source-shipping NuGet package) - Kind: class
Public members¶
| Member | Signature | Purpose |
|---|---|---|
| ContextId | public string ContextId { get; set; } |
The resolved web-context id, round-tripped through the hidden WebContextId form field. |
| ContextValue | public string ContextValue { get; set; } |
The resolved web-context value, round-tripped through the WebContextValue form field. |
| ShowContextBox | public bool ShowContextBox { get; set; } = true |
Whether the context form is visibly rendered; defaults to true (see BR-46). |
Sources¶
src/Web.Mvc/ViewModels/WebContextViewModel.cs