Product DocsMenu

Finding the Assembly Type of a SharePoint Web Part

You may need to find the assembly type of Web Parts that you want to index when you select the Index the content of the WebParts of these types only option for a SharePoint source (see Configuring and Indexing a Microsoft SharePoint Source or Configuring and Indexing a Microsoft SharePoint Source With the Legacy Connector)).

Tip: When useful, you can also get SharePoint Web Part assembly name and type programmatically (see Get web part assembly name and type name from SharePoint web part gallery).

To find the assembly type of a SharePoint Web Part

  1. Using a SharePoint administrator account, select the site collection containing the Web Part that you want to index.

  2. In the Site Actions menu, select Site Settings.

  3. In the Site Settings page, under Galleries, click Web Parts.

  4. In the list of Web Parts that appears, click the Edit icon for the Web Part that you want to index.

    The Web Part file can either have a .dwp or a .webpart extension

    Example: Click the Edit icon for the MSContent Editor.dwp file corresponding to the default Web Part assembly type.

  5. Click View XML.

  6. In the XML, copy the text between the <TypeName> and </TypeName> tags.

    Example: In the following XML code, you would copy Microsoft.SharePoint.WebPartPages.ContentEditorWebPart.
    <?xml version="1.0" encoding="utf-8" ?> 
    <WebPart xmlns="http://schemas.microsoft.com/WebPart/v2">
      <Assembly>Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</Assembly> 
      <TypeName>Microsoft.SharePoint.WebPartPages.ContentEditorWebPart</TypeName> 
      <Title>Content Editor Web Part</Title> 
      <Description>Use for formatted text, tables, and images.</Description> 
      <PartImageLarge>/_layouts/images/mscontl.gif</PartImageLarge> 
    </WebPart>           
People who viewed this topic also viewed