OrderBy Constructor (String, OrderBy.Direction)
Intializes a new instance of the OrderBy object. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Namespace: Microsoft.SqlServer.Management.Sdk.Sfc
Assembly: Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)
Syntax
'Declaration
Public Sub New ( _
field As String, _
dir As OrderBy.Direction _
)
'Usage
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
)
Parameters
- field
Type: System.String
A string value that specifies the field by which to order results of a query.
- dir
Type: Microsoft.SqlServer.Management.Sdk.Sfc.OrderBy.Direction
A OrderBy.Direction object that indicates the direction, ascending or descending order of results.