Click or drag to resize

IDatabaseRepositoryCheckAuthorization Method (String, String, Int32)

Checks if the user has the required authorization level for the profile and otherwise throws an exception.

Namespace:  PDTec.IceNet.Core.Database
Assembly:  PDTec.IceNet.Core (in PDTec.IceNet.Core.dll) Version: 7.2.0.0 (7.2.7583.15464)
Syntax
C#
void CheckAuthorization(
	string profileName,
	string userName,
	int authLevelRequired
)

Parameters

profileName
Type: SystemString
The function name.
userName
Type: SystemString
The user name.
authLevelRequired
Type: SystemInt32
The auth level required.
Exceptions
ExceptionCondition
ProfileAuthorizationExceptionThrown when the user does not have the required authorization level.
Remarks
This method recognizes authorization derived by group/role membership and from profile "System.All".
See Also