IStreamClosedFeature.OnClosed(Action<Object>, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Registers a callback to be invoked when a stream is closed. If the stream is already in a closed state, the callback will be run immediately.
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)
Parameters
- state
- Object
The state to pass into the callback.