共用方式為


PipeReader.OnWriterCompleted(Action<Exception,Object>, Object) 方法

定義

警告

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

警告

OnWriterCompleted has been deprecated and may not be invoked on all implementations of PipeReader.

註冊當管道 PipeWriter 端完成時所執行的回呼。

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);
[System.Obsolete("OnWriterCompleted has been deprecated and may not be invoked on all implementations of PipeReader.")]
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
[<System.Obsolete("OnWriterCompleted has been deprecated and may not be invoked on all implementations of PipeReader.")>]
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)

參數

callback
Action<Exception,Object>

要註冊的回呼。

state
Object

叫用時要傳遞給 callback 的狀態物件。

屬性

備註

重要

OnWriterCompleted 無法在的所有 實作 PipeWriter上叫用。 這個方法將在未來的版本中移除。

適用於