FeaturedContentCollection.AddFeaturedContent Method (String, String, String, String, Uri, Nullable<Int16>, Nullable<DateTime>, Nullable<DateTime>, Context)
Adds featured content with the specified featured content name, description, teaser, teaser content type, Uri, position and date range and attach it to the specified context.
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, _
description As String, _
teaser As String, _
teaserContentType As String, _
uri As Uri, _
position As Nullable(Of Short), _
startTime As Nullable(Of DateTime), _
endtime As Nullable(Of DateTime), _
context As Context _
) As FeaturedContent
'Usage
Dim instance As FeaturedContentCollection
Dim name As String
Dim description As String
Dim teaser As String
Dim teaserContentType As String
Dim uri As Uri
Dim position As Nullable(Of Short)
Dim startTime As Nullable(Of DateTime)
Dim endtime As Nullable(Of DateTime)
Dim context As Context
Dim returnValue As FeaturedContent
returnValue = instance.AddFeaturedContent(name, _
description, teaser, teaserContentType, _
uri, position, startTime, endtime, _
context)
FeaturedContent AddFeaturedContent(
string name,
string description,
string teaser,
string teaserContentType,
Uri uri,
Nullable<short> position,
Nullable<DateTime> startTime,
Nullable<DateTime> endtime,
Context context
)
Parameters
name
Type: System.StringThe name of the featured content.
description
Type: System.StringThe description of the featured content.
teaser
Type: System.StringThe teaser text.
teaserContentType
Type: System.Stringthe teaser MIME-type.
uri
Type: System.UriThe Uri of the featured content.
position
Type: System.Nullable<Int16>The position of the featured content. The semantics of this property is client-specified.
startTime
Type: System.Nullable<DateTime>The date from which the featured content is valid. Use [null] if there is no specific start date.
endtime
Type: System.Nullable<DateTime>The date to which the featured content is valid. Use [null] if there is no specific end date.
context
Type: Microsoft.SharePoint.Search.Extended.Administration.Keywords.ContextThe context to which the featured content is to be attached.
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
Microsoft.SharePoint.Search.Extended.Administration.Keywords Namespace