ByProgID Element (Document Icons)

Last modified: July 15, 2011

Applies to: SharePoint Foundation 2013 | SharePoint Server 2013

In this article
Child Elements
Parent Elements

Defines icons for documents according to their programmatic identifiers.






Minimum: 0

Maximum: Unbounded

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

Note 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.

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

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