|
DataContextEstablishUserRolesForPage(Type, Type, Object) Method
|
Namespace: GSF.Web.ModelAssembly: GSF.Web (in GSF.Web.dll) Version: 2.4.207-beta
Syntax public void EstablishUserRolesForPage(
Type model,
Type hub,
Object viewBag
)
Public Sub EstablishUserRolesForPage (
model As Type,
hub As Type,
viewBag As Object
)
public:
void EstablishUserRolesForPage(
Type^ model,
Type^ hub,
Object^ viewBag
)
member EstablishUserRolesForPage :
model : Type *
hub : Type *
viewBag : Object -> unit
function EstablishUserRolesForPage(model, hub, viewBag);
View SourceParameters
- model Type
- Modeled database table (or view) type.
- hub Type
- Type of SignalR hub that implements IRecordOperationsHub.
- viewBag Object
- ViewBag for the current view.
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