Click or drag to resize

IDatabaseRepositoryTryGetRoleById Method

Tries to get a role by ID.

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#
bool TryGetRoleById(
	string id,
	out IRole pRole
)

Parameters

id
Type: SystemString
The ID.
pRole
Type: PDTec.IceNet.Core.Database.UserManagementIRole
The role or null.

Return Value

Type: Boolean
true if a role with the ID exists, otherwise false.
See Also