The following are constructors for PageReference. PageReference(partialURL) Creates a new instance of the PageReference class using the specified URL. PageReference(record) Generate a new instance of the PageReference class for the specified sObject record.
The following are constructors for PageReference. PageReference(partialURL) Creates a new instance of the PageReference class using the specified URL. PageReference(record) Generate a new instance of the PageReference class for the specified sObject record.