Keyword.AddFeaturedContent Method

SharePoint 2010

Adds featured content to the keyword.

Namespace:  Microsoft.SharePoint.Search.Extended.Administration.Keywords
Assembly:  Microsoft.SharePoint.Search.Extended.Administration (in Microsoft.SharePoint.Search.Extended.Administration.dll)

'Declaration
Function AddFeaturedContent ( _
	featuredContentName As String _
) As FeaturedContent
'Usage
Dim instance As Keyword
Dim featuredContentName As String
Dim returnValue As FeaturedContent

returnValue = instance.AddFeaturedContent(featuredContentName)

Parameters

featuredContentName
Type: System.String

The name of the featured content to add.

Return Value

Type: Microsoft.SharePoint.Search.Extended.Administration.Keywords.FeaturedContent
A FeaturedContent representing the added featured content.

ExceptionCondition
AdminException

if featured content with the same name already exists for the keyword.

Show: