Share via


ContentList.GetScore Method (PIA)

Use this method to retrieve the score of an item in a ContentList object.

Definition

[Visual Basic .NET]

Imports Microsoft.CommerceServer.Interop.Caching
…
Public Function GetScore(RowNum As Integer) As Single

[C#]

using Microsoft.CommerceServer.Interop.Caching;
…
public float GetScore(intRowNum);

Parameters

[Visual Basic .NET]

  • RowNum
    An Integer that contains the position of the item in the ContentList object for which the score will be returned. Positions are counted from zero (0), not from one (1).

[C#]

  • RowNum
    A int that contains the position of the item in the ContentList object for which the score will be returned. Positions are counted from zero (0), not from one (1).

Return Values

[Visual Basic .NET] If this method completes successfully, it returns a Single that contains the score for the specified item.

[C#] This method returns a float containing the score for the specified item.

Exceptions

This method may throw one of many mapped exceptions or an exception of type COMException. See Standard COM Errors for additional details.

[Visual Basic .NET]

Example

'sngScore is a Single
sngScore = myContentList.GetScore(12)

Requirements

Namespace: Microsoft.CommerceServer.Interop.Caching

Platforms: Windows 2000, Windows Server 2003

Assembly: cachecomplib (in cachecomplib.dll)

See Also

ContentList Class

Copyright © 2005 Microsoft Corporation.
All rights reserved.