Share via


ManagedProperty.GetSamples method

NOTE: This API is now obsolete.

Returns a collection of sample values for the managed property.

Namespace:  Microsoft.Office.Server.Search.Administration
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
<ObsoleteAttribute("Use Query API for this purpose")> _
Public Function GetSamples ( _
    sampleCount As Integer _
) As IEnumerable
'Usage
Dim instance As ManagedProperty
Dim sampleCount As Integer
Dim returnValue As IEnumerable

returnValue = instance.GetSamples(sampleCount)
[ObsoleteAttribute("Use Query API for this purpose")]
public IEnumerable GetSamples(
    int sampleCount
)

Parameters

  • sampleCount
    Type: System.Int32

    A 32-bit integer that indicates the number of sample values to return.

Return value

Type: System.Collections.IEnumerable
An enumerator to iterate through the collection of sample values for the managed property.

See also

Reference

ManagedProperty class

ManagedProperty members

Microsoft.Office.Server.Search.Administration namespace