|
DataContextEstablishUserRolesForPageTModel, THub(Object) Method
|
Namespace: GSF.Web.ModelAssembly: GSF.Web (in GSF.Web.dll) Version: 2.4.248-beta
Syntaxpublic void EstablishUserRolesForPage<TModel, THub>(
Object viewBag
)
where TModel : class, new()
where THub : new(), IRecordOperationsHub
Public Sub EstablishUserRolesForPage(Of TModel As {Class, New}, THub As {New, IRecordOperationsHub}) (
viewBag As Object
)
public:
generic<typename TModel, typename THub>
where TModel : ref class, gcnew()
where THub : gcnew(), IRecordOperationsHub
void EstablishUserRolesForPage(
Object^ viewBag
)
member EstablishUserRolesForPage :
viewBag : Object -> unit when 'TModel : not struct, new() when 'THub : new() and IRecordOperationsHub
JavaScript does not support generic types or methods.
View SourceParameters
- viewBag Object
- ViewBag for the current view.
Type Parameters
- TModel
- Modeled database table (or view).
- THub
- SignalR hub that implements IRecordOperationsHub.
Remarks
Typically used in paged view model scenarios and invoked by controller prior to view rendering.
Security is controlled at hub level, so failure to call will not impact security but may result
in screen enabling and/or showing controls that the user does not actually have access to and
upon attempted use will result in a security error.
See Also