IStreamClosedFeature.OnClosed(Action<Object>, Object) 方法

定义

注册在流关闭时要调用的回调。 如果流已处于关闭状态,将立即运行回调。

public void OnClosed (Action<object?> callback, object? state);
abstract member OnClosed : Action<obj> * obj -> unit
Public Sub OnClosed (callback As Action(Of Object), state As Object)

参数

callback
Action<Object>

在流关闭后要调用的回调。

state
Object

要传入回调的状态。

适用于