Condividi tramite


GetProgID Element

Applies to: SharePoint Foundation 2010

Returns the ProgID for the given URL of a particular document. This is an internal element that returns the ProgID for any HTML file, which identifies the application that the HTML file was created in (whether it was a Microsoft Word document that was saved as HTML or a Microsoft Excel worksheet saved as HTML, etc.).

<GetProgID>
</GetProgID>

Attributes

Attribute

Description

None

N/A

Child Elements

Numerous

Parent Elements

Numerous

Occurrences

Minimum: 0

Maximum: Unbounded

Remarks

This element can be used within a view only if the HackLockWeb attribute of the View element is set to TRUE.

Example

The following example maps the ProgID and file extension for the Template lookup column, separated by a pipe symbol ("|"), to an icon.

<MapToIcon>
  <GetProgID>
    <LookupColumn Name="Template"/>
  </GetProgID>
  <HTML>|</HTML>
  <GetFileExtension>
    <LookupColumn Name="Template"/>
  </GetFileExtension>
</MapToIcon>