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

Namespace: DotNetNuke.Security.Membership
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public override ArrayList GetUsersByProfileProperty(
	int portalId,
	string propertyName,
	string propertyValue,
	int pageIndex,
	int pageSize,
	ref int totalRecords
)
Visual Basic
Public Overrides Function GetUsersByProfileProperty ( 
	portalId As Integer,
	propertyName As String,
	propertyValue As String,
	pageIndex As Integer,
	pageSize As Integer,
	ByRef totalRecords As Integer
) 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.

Return Value

An ArrayList of UserInfo objects.

Remarks