다음을 통해 공유


Control.IDelegateEvent<'Delegate> 인터페이스(F#)

임의 대리자 형식에 대한 첫 번째 클래스 이벤트 값입니다.

네임스페이스/모듈 경로: Microsoft.FSharp.Control

어셈블리: FSharp.Core(FSharp.Core.dll)

type IDelegateEvent<'Delegate> =
 interface
  abstract this.AddHandler : 'Delegate -> unit
  abstract this.RemoveHandler : 'Delegate -> unit
 end

설명

F#에서는 IDelegateEvent 형식과 호환되고 CLIEventAttribute로 태그가 지정된 멤버 IDelegateEvent에 특별한 상태를 지정합니다. 이 경우 F# 컴파일러는 적절한 CLI 메타데이터를 생성하여 해당 멤버가 다른 CLI 언어에 CLI 이벤트로 표시되도록 합니다.

인스턴스 멤버

멤버

설명

AddHandler

처리기 대리자 개체를 이벤트에 연결합니다. 처리기는 나중에 RemoveHandler를 사용하여 제거할 수 있습니다. 수신기는 이벤트가 발생할 때 호출됩니다.

RemoveHandler

이벤트 수신기 저장소에서 수신기 대리자를 제거합니다.

플랫폼

Windows Windows 서버 2012, Windows Server 2008 R2, Windows 7, 8

버전 정보

F# 코어 라이브러리 버전

지원: 2.0, 4.0, 노트북

참고 항목

참조

Microsoft.FSharp.Control 네임스페이스(F#)

DelegateEvent