SortCollection.Add 方法 (Microsoft.Office.Server.Search.Query)

Adds a new Sort structure to the collection.

命名空间: Microsoft.Office.Server.Search.Query
程序集: Microsoft.Office.Server.Search (在 microsoft.office.server.search.dll 中)

语法

声明
Public Sub Add ( _
    strProperty As String, _
    direction As SortDirection _
)
用法
Dim instance As SortCollection
Dim strProperty As String
Dim direction As SortDirection

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

参数

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

另请参阅

参考

SortCollection 类
SortCollection 成员
Microsoft.Office.Server.Search.Query 命名空间