DataSourceView.Delete(IDictionary, IDictionary, DataSourceViewOperationCallback) Método
Definição
Executa uma operação de exclusão assíncrona na lista de dados que o objeto DataSourceView representa.Performs an asynchronous delete operation on the list of data that the DataSourceView object represents.
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)
Parâmetros
- keys
- IDictionary
Um IDictionary de chaves de linha ou objeto a ser excluído pela operação ExecuteDelete(IDictionary, IDictionary).An IDictionary of object or row keys to be deleted by the ExecuteDelete(IDictionary, IDictionary) operation.
- oldValues
- IDictionary
Um IDictionary de pares nome-valor que representa os elementos de dados e seus valores originais.An IDictionary of name/value pairs that represent data elements and their original values.
- callback
- DataSourceViewOperationCallback
Um delegado DataSourceViewOperationCallback que é usado para notificar um controle associado a dados quando a operação assíncrona é concluída.A DataSourceViewOperationCallback delegate that is used to notify a data-bound control when the asynchronous operation is complete.
Exceções
O DataSourceViewOperationCallback fornecido é null.The DataSourceViewOperationCallback supplied is null.
Comentários
O Delete método é a interface de exclusão de dados assíncronos para todos os objetos de exibição da fonte de dados.The Delete method is the asynchronous data deletion interface for all data source view objects. O Delete método chama o ExecuteDelete método usando quaisquer keys oldValues valores de parâmetro e fornecidos.The Delete method calls the ExecuteDelete method using any keys and oldValues parameter values supplied. O callback parâmetro é um delegado que um controle vinculado a dados passa para a exibição da fonte de dados, que é usada para notificar o controle ligado a dados quando a ExecuteDelete operação for concluída.The callback parameter is a delegate that a data-bound control passes to the data source view, which is used to notify the data-bound control when the ExecuteDelete operation has completed. O método usa os parâmetros do DataSourceViewOperationCallback delegado para retornar o número de registros afetados e qualquer Exception exceção gerada pelo ExecuteDelete método.The method uses the parameters of the DataSourceViewOperationCallback delegate to return the number of affected records and any Exception exception that is thrown by the ExecuteDelete method.