Adds order by clause using name if the property appears in the select list if not, by value. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。
命名空間: Microsoft.SqlServer.Management.Sdk.Sfc
組件: Microsoft.SqlServer.Management.Sdk.Sfc (在 Microsoft.SqlServer.Management.Sdk.Sfc.dll 中)
語法
'宣告
Public Sub AddOrderBy ( _
prop As String, _
orderByValue As String, _
dir As OrderBy.Direction _
)
'用途
Dim instance As StatementBuilder
Dim prop As String
Dim orderByValue As String
Dim dir As OrderBy.Direction
instance.AddOrderBy(prop, orderByValue, _
dir)
public void AddOrderBy(
string prop,
string orderByValue,
OrderBy.Direction dir
)
public:
void AddOrderBy(
String^ prop,
String^ orderByValue,
OrderBy.Direction dir
)
member AddOrderBy :
prop:string *
orderByValue:string *
dir:OrderBy.Direction -> unit
public function AddOrderBy(
prop : String,
orderByValue : String,
dir : OrderBy.Direction
)
參數
- prop
型別:System.String
The property of the object.
- orderByValue
型別:System.String
The order by value.
- dir
型別:Microsoft.SqlServer.Management.Sdk.Sfc.OrderBy.Direction
The direction of the order.