Keyword.AddFeaturedContent Method

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)

Syntax

'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)
FeaturedContent AddFeaturedContent(
    string 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.

Exceptions

Exception Condition
AdminException

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

See Also

Reference

Keyword Interface

Keyword Members

Microsoft.SharePoint.Search.Extended.Administration.Keywords Namespace