GetUsersByProfileProperty gets all the users of the portal whose profile matches the profile property pased as a parameter

Namespace: DotNetNuke.Entities.Users
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public static ArrayList GetUsersByProfileProperty(
	int portalId,
	string propertyName,
	string propertyValue,
	int pageIndex,
	int pageSize,
	ref int totalRecords,
	bool includeDeleted,
	bool superUsersOnly
)
Visual Basic
Public Shared Function GetUsersByProfileProperty ( 
	portalId As Integer,
	propertyName As String,
	propertyValue As String,
	pageIndex As Integer,
	pageSize As Integer,
	ByRef totalRecords As Integer,
	includeDeleted As Boolean,
	superUsersOnly As Boolean
) As ArrayList

Parameters

portalId
Type: System..::..Int32
The Id of the Portal
propertyName
Type: System..::..String
The name of the property being matched.
propertyValue
Type: System..::..String
The value of the property being matched.
pageIndex
Type: System..::..Int32
The page of records to return.
pageSize
Type: System..::..Int32
The size of the page
totalRecords
Type: System..::..Int32%
The total no of records that satisfy the criteria.
includeDeleted
Type: System..::..Boolean
Include Deleted Users.
superUsersOnly
Type: System..::..Boolean
Only get super users.

Return Value

An ArrayList of UserInfo objects.

Remarks