---
schema_version: "1"
id: 5c846cd23c5ad6a0477bbeba099547d4afa5e34ce579a4ef20e668bc5d9d5577
title: PrimaryTabComponents Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_Metadata_PrimaryTabComponents.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_PrimaryTabComponents.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 1e2062b556f49375938db426f01d2c361bb68b3be76b87f414df22e6c4a9be45
description: Represents custom console components on primary tabs in the Salesforce console.Represents a custom console component (Visualforce page, lookup field, or related lists) on a section of a page layout. Represents a location and style in which to display more than one custom console component on the sidebars of the Salesforce console.Makes a duplicate copy of the Metadata.PrimaryTabComponents.
---
# PrimaryTabComponents Class

Represents custom console components on primary tabs in the Salesforce console.

## Namespace

[Metadata](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_Metadata.htm "The Metadata namespace provides classes and methods for working with custom metadata in Salesforce")

## Usage

Use this class when accessing [Metadata.Layout](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_Layout.htm#apex_class_Metadata_Layout "Represents the metadata associated with a page layout.") metadata components. For more information, see “PrimaryTabComponents” in the [Metadata API Developer Guide](https://developer.salesforce.com/docs/atlas.en-us.264.0.api_meta.meta/api_meta/meta_intro.htm).

- **[PrimaryTabComponents Properties](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_PrimaryTabComponents.htm#apex_Metadata_PrimaryTabComponents_properties)**
- **[PrimaryTabComponents Methods](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_PrimaryTabComponents.htm#apex_Metadata_PrimaryTabComponents_methods)**

## PrimaryTabComponents Properties

The following are properties for PrimaryTabComponents.

- **[component](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_PrimaryTabComponents.htm#apex_Metadata_PrimaryTabComponents_component)**  
    Represents a custom console component (Visualforce page, lookup field, or related lists) on a section of a page layout.
- **[containers](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_PrimaryTabComponents.htm#apex_Metadata_PrimaryTabComponents_containers)**  
    Represents a location and style in which to display more than one custom console component on the sidebars of the Salesforce console.

### component

Represents a custom console component (Visualforce page, lookup field, or related lists) on a section of a page layout.

#### Signature

public List<Metadata.ConsoleComponent> component {get; set;}

#### Property Value

Type: [List](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<[Metadata.ConsoleComponent](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_ConsoleComponent.htm#apex_class_Metadata_ConsoleComponent "Represents a custom console component on a section of a page layout.")\>

### containers

Represents a location and style in which to display more than one custom console component on the sidebars of the Salesforce console.

#### Signature

public List<Metadata.Container> containers {get; set;}

#### Property Value

Type: [List](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<[Metadata.Container](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_Container.htm#apex_class_Metadata_Container "Represents a location and style in which to display more than one custom console component in the sidebars of the console.")\>

## PrimaryTabComponents Methods

The following are methods for PrimaryTabComponents.

- **[clone()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_PrimaryTabComponents.htm#apex_Metadata_PrimaryTabComponents_clone)**  
    Makes a duplicate copy of the Metadata.PrimaryTabComponents.

### clone()

Makes a duplicate copy of the Metadata.PrimaryTabComponents.

#### Signature

public Object clone()

#### Return Value

Type: Object