다음을 통해 공유


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

콜백에 전달할 상태입니다.

적용 대상