Share via


FeaturedContentCollection.AddFeaturedContent Method (String, String, String, Uri)

Adds featured content with the specified name, teaser, teaser content type and Uri.

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

Syntax

'Declaration
Function AddFeaturedContent ( _
    name As String, _
    teaser As String, _
    teaserContentType As String, _
    uri As Uri _
) As FeaturedContent
'Usage
Dim instance As FeaturedContentCollection
Dim name As String
Dim teaser As String
Dim teaserContentType As String
Dim uri As Uri
Dim returnValue As FeaturedContent

returnValue = instance.AddFeaturedContent(name, _
    teaser, teaserContentType, uri)
FeaturedContent AddFeaturedContent(
    string name,
    string teaser,
    string teaserContentType,
    Uri uri
)

Parameters

  • uri
    Type: System.Uri

    The Uri of the featured content.

Return Value

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

See Also

Reference

FeaturedContentCollection Interface

FeaturedContentCollection Members

AddFeaturedContent Overload

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