다음을 통해 공유


Observable.ToEvent 메서드(IObservable<Unit>)

지정된 원본이 있는 .NET 이벤트가 있는 개체로 관찰 가능한 시퀀스를 노출합니다.

네임스페이스:System.Reactive.Linq
어셈블리: System.Reactive(System.Reactive.dll)

구문

'Declaration
<ExtensionAttribute> _
Public Shared Function ToEvent ( _
    source As IObservable(Of Unit) _
) As IEventSource(Of Unit)
'Usage
Dim source As IObservable(Of Unit)
Dim returnValue As IEventSource(Of Unit)

returnValue = source.ToEvent()
public static IEventSource<Unit> ToEvent(
    this IObservable<Unit> source
)
[ExtensionAttribute]
public:
static IEventSource<Unit>^ ToEvent(
    IObservable<Unit>^ source
)
static member ToEvent : 
        source:IObservable<Unit> -> IEventSource<Unit> 
public static function ToEvent(
    source : IObservable<Unit>
) : IEventSource<Unit>

매개 변수

반환 값

형식: System.Reactive.IEventSource<단위>
이벤트 소스 개체입니다.

사용 정보

Visual Basic 및 C#에서는 IObservableUnit> 형식의 모든 개체에서 이 메서드를 instance 메서드로 호출할 수 있습니다<. 인스턴스 메서드 구문을 사용하여 이 메서드를 호출할 경우에는 첫 번째 매개 변수를 생략합니다. 자세한 내용은 또는 를 참조하세요.

참고 항목

참조

관찰 가능한 클래스

ToEvent 오버로드

System.Reactive.Linq 네임스페이스