DataSourceView.Delete Metod

Definition

Utför en asynkron borttagningsåtgärd i listan över data som DataSourceView objektet representerar.

public:
 virtual void Delete(System::Collections::IDictionary ^ keys, System::Collections::IDictionary ^ oldValues, System::Web::UI::DataSourceViewOperationCallback ^ callback);
public virtual void Delete(System.Collections.IDictionary keys, System.Collections.IDictionary oldValues, System.Web.UI.DataSourceViewOperationCallback callback);
abstract member Delete : System.Collections.IDictionary * System.Collections.IDictionary * System.Web.UI.DataSourceViewOperationCallback -> unit
override this.Delete : System.Collections.IDictionary * System.Collections.IDictionary * System.Web.UI.DataSourceViewOperationCallback -> unit
Public Overridable Sub Delete (keys As IDictionary, oldValues As IDictionary, callback As DataSourceViewOperationCallback)

Parametrar

keys
IDictionary

Ett IDictionary objekt eller radnycklar som ska tas bort av åtgärden ExecuteDelete(IDictionary, IDictionary) .

oldValues
IDictionary

Ett IDictionary namn/värde-par som representerar dataelement och deras ursprungliga värden.

callback
DataSourceViewOperationCallback

Ett DataSourceViewOperationCallback ombud som används för att meddela en databunden kontroll när den asynkrona åtgärden är klar.

Undantag

Kommentarer

Metoden Delete är det asynkrona databorttagningsgränssnittet för alla datakällans visningsobjekt. Metoden Delete anropar ExecuteDelete metoden med valfria keys parametervärden och oldValues angivna parametervärden. Parametern callback är ett ombud som en databunden kontroll skickar till datakällans vy, som används för att meddela den databundna kontrollen när ExecuteDelete åtgärden har slutförts. Metoden använder ombudets DataSourceViewOperationCallback parametrar för att returnera antalet berörda poster och eventuella Exception undantag som genereras av ExecuteDelete metoden.

Gäller för

Se även