PipeReader.OnWriterCompleted(Action<Exception,Object>, Object) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
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)
參數
- state
- Object
叫用時要傳遞給 callback
的狀態物件。
- 屬性
備註
重要
OnWriterCompleted
無法在的所有 實作 PipeWriter上叫用。 這個方法將在未來的版本中移除。