다음을 통해 공유


SortCollection.Add Method

Adds a new Sort structure to the collection.

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

Syntax

'Declaration
Public Sub Add ( _
    strProperty As String, _
    direction As SortDirection _
)
'Usage
Dim instance As SortCollection
Dim strProperty As String
Dim direction As SortDirection

instance.Add(strProperty, direction)
public void Add(
    string strProperty,
    SortDirection direction
)

Parameters

  • strProperty
    Type: System.String

    A string specifying the name of the property to sort the results by.

See Also

Reference

SortCollection Class

SortCollection Members

Microsoft.Office.Server.Search.Query Namespace