DataServiceContext.CancelRequest(IAsyncResult) Método

Definição

Tenta cancelar a operação associada ao objeto IAsyncResult fornecido.Attempts to cancel the operation that is associated with the supplied IAsyncResult object.

public:
 void CancelRequest(IAsyncResult ^ asyncResult);
public void CancelRequest (IAsyncResult asyncResult);
member this.CancelRequest : IAsyncResult -> unit
Public Sub CancelRequest (asyncResult As IAsyncResult)

Parâmetros

asyncResult
IAsyncResult

O objeto IAsyncResult da operação que está sendo cancelada.The IAsyncResult object from the operation being canceled.

Comentários

O IAsyncResult objeto passado para o asyncResult parâmetro é o objeto retornado quando uma operação é executada de forma assíncrona.The IAsyncResult object passed to the asyncResult parameter is the object returned when an operation is executed asynchronously. Para obter mais informações, consulte operações assíncronas. Até que essa solicitação seja processada, a DataServiceContext instância não está em um estado previsível.For more information, see Asynchronous Operations.Until this request is processed, the DataServiceContext instance is not in a predictable state. O DataServiceContext pode ser usado com segurança quando a IsCompleted propriedade de asyncResult retorna um valor de true .The DataServiceContext can be safely used when the IsCompleted property of the asyncResult returns a value of true.

Aplica-se a