You are here: RainWorx.FrameWorx.MVC Namespaces > RainWorx.FrameWorx.MVC.Controllers > AdminController Class > ExportUserCSV Method (Nullable(Int32), String, String, String, String, String, String, String, Boolean, Boolean, String)

AdminControllerExportUserCSV Method (NullableInt32, String, String, String, String, String, String, String, Boolean, Boolean, String)

AuctionWorx 3.5 API
Processes admin export user csv request

Namespace:  RainWorx.FrameWorx.MVC.Controllers
Assembly:  RainWorx.FrameWorx.MVC (in RainWorx.FrameWorx.MVC.dll) Version: 3.5

Syntax

C#
public ActionResult ExportUserCSV(
	int? userid,
	string username,
	string first,
	string last,
	string email,
	string status,
	string role,
	string sort,
	bool descending,
	bool includeHeaders,
	string columnSpec
)

Parameters

userid
Type: SystemNullableInt32
id of a specific user (0 to skip user id filter)
username
Type: SystemString
partial username string to match
first
Type: SystemString
partial first name string to match
last
Type: SystemString
partial last name string to match
email
Type: SystemString
partial email address string to match
status
Type: SystemString
filter results by various status flag combinations - see remarks for more info
role
Type: SystemString
the name of the role to include (e.g. "Admin", "Seller", or "Buyer"; or empty string ("") to skip role filter)
sort
Type: SystemString
the name of the column to sort the results by
descending
Type: SystemBoolean
true to order the results from highest to lowest
includeHeaders
Type: SystemBoolean
true to include a header row in resulting CSV data
columnSpec
Type: SystemString
a comma-delimited list of columns to include

Return Value

Type: ActionResult
Redirect to /Admin/UserManagement
Remarks

valid status values:
empty string ("")IsActive = 1
"deactivated"IsActive = 0
"restricted"IsLockedOut = 1 and IsActive = 1
"unverified"IsVerified = 0 and IsActive = 1
"unapproved"IsApproved = 0 and IsActive = 1
"active"IsActive = 1 and IsLockedOut = 0 and IsVerified = 1 and IsApproved = 1
"newsletter"IsActive = 1 and IsLockedOut = 0 and IsVerified = 1 and IsApproved = 1 and Newsletter = 1
See Also

Reference

Copyright © 2002-2022. RainWorx Software. All rights reserved.