Export (0) Print
Expand All

ByProgID Element (Document Icons)

Last modified: January 28, 2010

Applies to: SharePoint Foundation 2010

In this article
Attributes
Child Elements
Parent Elements
Occurrences

Defines icons for documents according to their programmatic identifiers.


<ByProgID>
</ByProgID>

Attribute

Description

None

N/A

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.

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

Show:
© 2014 Microsoft