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上调用 。 此方法将在将来的版本中删除。