BestBetCollection.AddBestBet Method (String, String, String, String, Uri, Nullable<Int16>, Nullable<DateTime>, Nullable<DateTime>, Context)
Adds a best with the specified best bet 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 AddBestBet ( _
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), _
cx As Context _
) As BestBet
'Usage
Dim instance As BestBetCollection
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 cx As Context
Dim returnValue As BestBet
returnValue = instance.AddBestBet(name, _
description, teaser, teaserContentType, _
uri, position, startTime, endtime, _
cx)
BestBet AddBestBet(
string name,
string description,
string teaser,
string teaserContentType,
Uri uri,
Nullable<short> position,
Nullable<DateTime> startTime,
Nullable<DateTime> endtime,
Context cx
)
Parameters
name
Type: System.StringThe name of the best bet.
description
Type: System.StringThe description of the best best.
teaser
Type: System.StringThe teaser text.
teaserContentType
Type: System.Stringthe teaser MIME-type.
uri
Type: System.UriThe Uri of the best bet.
position
Type: System.Nullable<Int16>The position of the best bet. The semantics of this property is client-specified.
startTime
Type: System.Nullable<DateTime>The date from which the best bet is valid. Use [null] if there is no specific start date.
endtime
Type: System.Nullable<DateTime>he date to which the best bet is valid. Use [null] if there is no specific end date.
cx
Type: Microsoft.SharePoint.Search.Extended.Administration.Keywords.ContextTo context to which the best bet is to be attached.
Return Value
Type: Microsoft.SharePoint.Search.Extended.Administration.Keywords.BestBet
A BestBet object representing the added best bet.
See Also
Reference
Microsoft.SharePoint.Search.Extended.Administration.Keywords Namespace