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: 6.0.0.0 (6.0.6225.27214)
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