---
schema_version: "1"
id: 72632d11e2c479022ae744b9d04f5bda4ccef704e9f81334bb6d9aef13660d5b
title: ApexComponent
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_meta/meta_component.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_component.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 3fcd5d4671f359ab54e0603c851411c107c35ce2a091b9b273370dd68806ae2d
description: Represents a Visualforce component.
---
# ApexComponent

Represents a Visualforce component.

For more information, see Visualforce in Salesforce Help and [StaticResource: MetadataWithContent](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_staticresource.htm#extends_metadatawithcontent)

## Declarative Metadata File Suffix and Directory Location

The file suffix is .component for the page file. The accompanying metadata file is named ComponentName\-meta.xml.

Visualforce components are stored in the components folder in the corresponding package directory.

## Version

Visualforce components are available in API version 12.0 and later.

## Fields

This metadata type contains the following fields:

<table class="featureTable sort_table" summary="">



          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader  " id="d261707e101">Field Name</th>

              <th class="featureTableHeader  " id="d261707e104">Field Type</th>

              <th class="featureTableHeader  " id="d261707e107">Description</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d261707e101" data-title="Field Name"><span class="keyword parmname" id="field_apiVersion"><a name="field_apiVersion"><!-- --></a>apiVersion</span></td>

              <td class="entry" headers="d261707e104" data-title="Field Type">double</td>

              <td class="entry" headers="d261707e107" data-title="Description">
                <span class="ph" id="field_apiVersion_desc"><a name="field_apiVersion_desc"><!-- --></a>The API version for this Visualforce component. Every
                  component has an API version specified at creation.</span> This field is available in API
                version 16.0 and later.
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d261707e101" data-title="Field Name"><span class="keyword parmname">content</span></td>

              <td class="entry" headers="d261707e104" data-title="Field Type">base64Binary</td>

              <td class="entry" headers="d261707e107" data-title="Description">The component content. Base 64-encoded binary data. Before making an API call, client
                applications must encode the binary attachment data as base64. Upon receiving a
                response, client applications must decode the base64 data to binary. This conversion
                is handled for you by a SOAP client. This field is inherited from the <a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_metadatawithcontent.htm" title="MetadataWithContent is the base type for all metadata types that contain content, such as documents or email templates. It extends Metadata. You can’t edit this object.">MetadataWithContent</a>
                component.</td>

            </tr>

            <tr>
              <td class="entry" headers="d261707e101" data-title="Field Name"><span class="keyword parmname">description</span></td>

              <td class="entry" headers="d261707e104" data-title="Field Type">string</td>

              <td class="entry" headers="d261707e107" data-title="Description">A description of what the component does.</td>

            </tr>

            <tr>
              <td class="entry" headers="d261707e101" data-title="Field Name"><span class="keyword parmname">fullName</span></td>

              <td class="entry" headers="d261707e104" data-title="Field Type">string</td>

              <td class="entry" headers="d261707e107" data-title="Description">The component developer name used as a unique identifier for API access. The
                <span class="keyword parmname">fullName</span> can contain only underscores and alphanumeric
                characters. It must be unique, begin with a letter, not include spaces, not end with
                an underscore, and not contain two consecutive underscores. This field is inherited
                from the <a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/metadata.htm" title="The base class for all metadata types. You can’t edit this object. A component is an instance of a metadata type.">Metadata</a>
                component.
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d261707e101" data-title="Field Name"><span class="keyword parmname">label</span></td>

              <td class="entry" headers="d261707e104" data-title="Field Type">string</td>

              <td class="entry" headers="d261707e107" data-title="Description">Required. The label for this component.</td>

            </tr>

            <tr>
              <td class="entry" headers="d261707e101" data-title="Field Name"><span class="keyword parmname" id="field_packageVersions"><a name="field_packageVersions"><!-- --></a>packageVersions</span></td>

              <td class="entry" headers="d261707e104" data-title="Field Type">
                <a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_classes.htm#PackageVersion">PackageVersion</a>[]
              </td>

              <td class="entry" headers="d261707e107" data-title="Description">
                <span class="ph" id="field_packageVersions_desc"><a name="field_packageVersions_desc"><!-- --></a>The list of installed managed package versions
                  that are referenced by this Visualforce component.</span>
                <p class="p">Package components and Visualforce custom component are distinct concepts. A
                  package is comprised of many elements, such as custom objects, Apex classes and
                  triggers, and custom pages and components.</p>

                <p class="p">For more information about managed packages, see <a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.264.0.sfdx_dev.meta/sfdx_dev/sfdx_dev_dev2gp.htm" target="_blank" title="HTML (New Window)">Second-Generation Managed Packages</a> in the <cite class="cite">Salesforce DX Developer
                    Guide</cite>. This field is available in API version 16.0 and later.</p>
              </td>

            </tr>

          </tbody>

        </table>

## Wildcard Support in the Manifest File

This metadata type supports the wildcard character \* (asterisk) in the package.xml manifest file. For information about using the manifest file, see [Deploying and Retrieving Metadata with the Zip File](https://developer.salesforce.com/docs/atlas.en-us.264.0.api_meta.meta/api_meta/file_based_zip_file.htm).

#### See Also

- [ApexPage](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_pages.htm "Represents a Visualforce page.")