PipeReader.OnWriterCompleted(Action<Exception,Object>, Object) Método

Definição

Cuidado

OnWriterCompleted may not be invoked on all implementations of PipeReader. This will be removed in a future release.

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

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

OnWriterCompleted Não pode ser invocado em todas as implementações de PipeWriter .OnWriterCompleted 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