PageReference(record)

Generate a new instance of the PageReference class for the specified sObject record.

Signature

public PageReference(SObject record)

Parameters

record
Type: SObject
The sObject record that references the ApexPage. The reference must be an ApexPage.