IUserDataSourceActivateRoleMembership Method (IUserContext, Int32) |
Activates the role membership of the user.
In this case thes user is the user included in the client information.
Namespace: ArtDatabanken.Data.DataSourceAssembly: ArtDatabanken.Data (in ArtDatabanken.Data.dll) Version: 1.3.0.0 (1.3.0.0)
Syntax bool ActivateRoleMembership(
IUserContext userContext,
int roleId
)
Function ActivateRoleMembership (
userContext As IUserContext,
roleId As Integer
) As Boolean
bool ActivateRoleMembership(
IUserContext^ userContext,
int roleId
)
abstract ActivateRoleMembership :
userContext : IUserContext *
roleId : int -> bool
Parameters
- userContext
- Type: ArtDatabanken.DataIUserContext
User context. - roleId
- Type: SystemInt32
Id of the role.
Return Value
Type:
Boolean
'true' if role membership is activated.
'false' if if user is not associated with the role.
See Also