Udostępnij za pośrednictwem


Metoda StatementBuilder.AddOrderBy (String, String, OrderBy.Direction)

Dodaje klauzulę przy użyciu nazwy, jeśli kolejność właściwość pojawi się na liście wybierz Jeśli nie, przez wartość.Nie należy odwoływać się do tego elementu członkowskiego bezpośrednio w kodzie. Obsługuje on infrastrukturę programu SQL Server.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Sdk.Sfc
Zestaw:  Microsoft.SqlServer.Management.Sdk.Sfc (w Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Składnia

'Deklaracja
Public Sub AddOrderBy ( _
    prop As String, _
    orderByValue As String, _
    dir As OrderBy..::..Direction _
)
'Użycie
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
)

Parametry