共用方式為


OrderBy 建構函式 (String, OrderBy.Direction)

Intializes a new instance of the OrderBy object. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。

命名空間:  Microsoft.SqlServer.Management.Sdk.Sfc
組件:  Microsoft.SqlServer.Management.Sdk.Sfc (在 Microsoft.SqlServer.Management.Sdk.Sfc.dll 中)

語法

'宣告
Public Sub New ( _
    field As String, _
    dir As OrderBy..::..Direction _
)
'用途
Dim field As String
Dim dir As OrderBy..::..Direction

Dim instance As New OrderBy(field, dir)
public OrderBy(
    string field,
    OrderBy..::..Direction dir
)
public:
OrderBy(
    String^ field, 
    OrderBy..::..Direction dir
)
new : 
        field:string * 
        dir:OrderBy..::..Direction -> OrderBy
public function OrderBy(
    field : String, 
    dir : OrderBy..::..Direction
)

參數

  • field
    型別:System. . :: . .String
    A string value that specifies the field by which to order results of a query.