StandardSetController(controllerSObjects)

Creates an instance of the ApexPages.StandardSetController class for the specified list of standard or custom objects.

Signature

public StandardSetController(List<sObject> controllerSObjects)

Parameters

controllerSObjects
Type: List<sObject>
A List of standard or custom objects.

Example

List<account> accountList = [SELECT Name FROM Account LIMIT 20];
ApexPages.StandardSetController ssc = new ApexPages.StandardSetController(accountList);