ByProgID Element (Document Icons)

Applies to: SharePoint Foundation 2010

Defines icons for documents according to their programmatic identifiers.

<ByProgID>
</ByProgID>

Attributes

Attribute

Description

None

N/A

Child Elements

Mapping

Parent Elements

DocIcons

Occurrences

Minimum: 0

Maximum: Unbounded

Remarks

This element is used in the DocIcon.xml file to drive mapping between ProgIDs and their corresponding document library icons.

Note

A ProgId is a registry entry that associates the program identifier (ProgID) of a COM object with its class identifier (CLSID). For example, the registry key HKLM\Software\Classes\Word.Document has a subkey named CLSID with a value of {F4754C9B-64F5-4B40-8AF4-679732AC0607}. In this case, the key name Word.Document is a ProgId, a shorthand way of saying {F4754C9B-64F5-4B40-8AF4-679732AC0607}. For more information, see <ProgId> Key (COM).

For example, an HTML document that contains <META Name="ProgId" Content="Word.Document"> would map to the icon that is specified for the ProgId "Word.Document" by a Mapping element inside the ByProgID element.

<ByProgID>
    <Mapping Key="Word.Document" Value="ichtmdoc.gif"/>
</ByProgID>

See DocIcons Element (Document Icons) for an extended example that shows how to use the ByProgID element.