AnalyticsHashTagWebPart class
The AnalyticsHashTagWebPart class is a Web Part class introduced in SharePoint Server 2013. This Web Part displays the most popular hash tags under the title Trending #tags.
Each AnalyticsHashTagWebPart is associated with a collection of up to 20 of the most popular hash tags that were used in the past week. This collection is sorted in descending order based on the frequency of use; the most popular hash tag is placed first.
When the web page is rendered, a search query for the hash tags is issued automatically and the AnalyticsHashTagWebPart inserts the results into the web page in JSON format.
Inheritance hierarchy
System.Object
System.Web.UI.Control
System.Web.UI.WebControls.WebControl
System.Web.UI.WebControls.Panel
System.Web.UI.WebControls.WebParts.Part
System.Web.UI.WebControls.WebParts.WebPart
Microsoft.SharePoint.WebPartPages.WebPart
Microsoft.Office.Server.Search.WebControls.AnalyticsRecommendationScriptWebPart
Microsoft.Office.Server.Search.WebControls.AnalyticsHashTagWebPart
Namespace: Microsoft.Office.Server.Search.WebControls
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
<ScriptDescriptorComponentTypeAttribute("Srch.AnalyticsRecommendation")> _
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public Class AnalyticsHashTagWebPart _
Inherits AnalyticsRecommendationScriptWebPart
'Usage
Dim instance As AnalyticsHashTagWebPart
[ScriptDescriptorComponentTypeAttribute("Srch.AnalyticsRecommendation")]
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public class AnalyticsHashTagWebPart : AnalyticsRecommendationScriptWebPart
Thread safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.