Share via


BestBetCategories Property

The BestBetCategories property contains a list of category names that determine that this document is included in the Best Bet list in a search.

Property BestBetCategories As Variant[C++]
Get method:
HRESULT get_BestBetCategories(VARIANT*pBestBetCategories);
Put_method:
HRESULT put_BestBetCategories(VARIANTvarBestBetCategories);

[Visual Basic]

Parameters

None.

Return Values

This property returns a Variant that contains an array of Variants. Each Variant in the array contains a String that contains a category name, such as :category1:subcategory1, for which this document is a best bet. Defaults to an empty array.

Error Values

If an error is raised, Err.Number is set to one of the values documented on the Error Messages page.

[C++]

Parameters

Get method:

  • pBestBetCategories
    [out, retval] Pointer to a VARIANT that contains an array of VARIANTs. Each VARIANT in the array contains a BSTR that contains a category name, such as :category1:subcategory1, for which this document is a best bet. Defaults to an empty array.

Put method:

  • varBestBetCategories
    [in] VARIANT that contains an array of VARIANTs. Each VARIANT in the array contains a BSTR that contains a category name, such as :category1:subcategory1, for which this document is a best bet.
Return Values

For a list of error messages returned by SharePoint Portal Server, see Error Messages.