Click or drag to resize
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.DataSource
Assembly: ArtDatabanken.Data (in ArtDatabanken.Data.dll) Version: 1.3.0.0 (1.3.0.0)
Syntax
bool ActivateRoleMembership(
	IUserContext userContext,
	int roleId
)

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