---
schema_version: "1"
id: a9d35e4199f8009b8d4c2c6916ec381d9126121bf75010e1f6146826066bf730
title: PageReference Constructors
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_System_PageReference_constructors.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_System_PageReference_constructors.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 4cf98cbcdae3199c934b1344fb3e4b447255a00183be51f420938bbde969caef
---
# PageReference Constructors

The following are constructors for PageReference.

- **[PageReference(partialURL)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_System_PageReference_ctor_2.htm)**  
    Creates a new instance of the PageReference class using the specified URL.
- **[PageReference(record)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_System_PageReference_ctor.htm)**  
    Generate a new instance of the PageReference class for the specified sObject record.