Observable.ToEventPattern<TEventArgs> メソッド

.NET イベントを含むオブジェクトとして監視可能なシーケンスを公開します。

Namespace:System.Reactive.Linq
アセンブリ: System.Reactive (System.Reactive.dll)

構文

'Declaration
<ExtensionAttribute> _
Public Shared Function ToEventPattern(Of TEventArgs As EventArgs) ( _
    source As IObservable(Of EventPattern(Of TEventArgs)) _
) As IEventPatternSource(Of TEventArgs)
'Usage
Dim source As IObservable(Of EventPattern(Of TEventArgs))
Dim returnValue As IEventPatternSource(Of TEventArgs)

returnValue = source.ToEventPattern()
public static IEventPatternSource<TEventArgs> ToEventPattern<TEventArgs>(
    this IObservable<EventPattern<TEventArgs>> source
)
where TEventArgs : EventArgs
[ExtensionAttribute]
public:
generic<typename TEventArgs>
where TEventArgs : EventArgs
static IEventPatternSource<TEventArgs>^ ToEventPattern(
    IObservable<EventPattern<TEventArgs>^>^ source
)
static member ToEventPattern : 
        source:IObservable<EventPattern<'TEventArgs>> -> IEventPatternSource<'TEventArgs>  when 'TEventArgs : EventArgs
JScript does not support generic types and methods.

型パラメーター

  • TEventArgs
    イベントの種類。

パラメーター

戻り値

種類: System.Reactive.IEventPatternSource<TEventArgs>
イベント ソース オブジェクト。

使用上の注意

Visual Basic および C# では、 IObservable<EventPattern<TEventArgs>> 型の任意のオブジェクトのインスタンス メソッドとしてこのメソッドを呼び出すことができます。 インスタンス メソッド構文を使用してこのメソッドを呼び出す場合は、最初のパラメーターを省略します。 詳細については、」または」を参照してください。

参照

リファレンス

Observable クラス

System.Reactive.Linq 名前空間