PipeWriter.OnReaderCompleted(Action<Exception,Object>, Object) Método

Definição

Aviso

Esta API agora é obsoleta.

Registra um retorno de chamada que é executado quando o lado PipeReader do pipe é concluído.Registers a callback that executes when the PipeReader side of the pipe is completed.

public:
 virtual void OnReaderCompleted(Action<Exception ^, System::Object ^> ^ callback, System::Object ^ state);
[System.Obsolete("OnReaderCompleted may not be invoked on all implementations of PipeWriter. This will be removed in a future release.")]
public virtual void OnReaderCompleted (Action<Exception,object> callback, object state);
abstract member OnReaderCompleted : Action<Exception, obj> * obj -> unit
override this.OnReaderCompleted : Action<Exception, obj> * obj -> unit
Public Overridable Sub OnReaderCompleted (callback As Action(Of Exception, Object), state As Object)

Parâmetros

callback
Action<Exception,Object>

O retorno de chamada a ser registrado.The callback to register.

state
Object

O objeto de estado a ser passado para callback quando ele é invocado.The state object to pass to callback when it's invoked.

Atributos

Comentários

Importante

OnReaderCompleted não pode ser invocado em todas as implementações de PipeWriter.OnReaderCompleted may not be invoked on all implementations of PipeWriter. Esse método será removido em uma versão futura.This method will be removed in a future release.

Aplica-se a