Click or drag to resize
UserInfoProviderGetUserRoles Method (UserInfo, String, String, Int32, String, Boolean, Boolean, Boolean)
Returns the table of the user roles.

Namespace: CMS.Membership
Assembly: CMS.Membership (in CMS.Membership.dll) Version: 11.0.0
Syntax
C#
public static DataTable GetUserRoles(
	UserInfo userInfo,
	string whereCondition,
	string orderBy,
	int topN,
	string columns,
	bool includeMembership,
	bool includeGlobal,
	bool checkValidity
)

Parameters

userInfo
Type: CMS.MembershipUserInfo
User info for retrieving the role table
whereCondition
Type: SystemString
Where condition
orderBy
Type: SystemString
Order by
topN
Type: SystemInt32
Top N records
columns
Type: SystemString
Columns to get
includeMembership
Type: SystemBoolean
If true, membership roles are added
includeGlobal
Type: SystemBoolean
If true, global roles are added
checkValidity
Type: SystemBoolean
If true, only valid roles are selected

Return Value

Type: DataTable
See Also