Observable.Throw<TResult> メソッド (例外)

例外で終了する監視可能なシーケンスを返します。

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

構文

'Declaration
Public Shared Function Throw(Of TResult) ( _
    exception As Exception _
) As IObservable(Of TResult)
'Usage
Dim exception As Exception
Dim returnValue As IObservable(Of TResult)

returnValue = Observable.Throw(exception)
public static IObservable<TResult> Throw<TResult>(
    Exception exception
)
public:
generic<typename TResult>
static IObservable<TResult>^ Throw(
    Exception^ exception
)
static member Throw : 
        exception:Exception -> IObservable<'TResult> 
JScript does not support generic types and methods.

型パラメーター

  • TResult
    結果の型。

パラメーター

  • exception
    種類: System.Exception
    シーケンスの終了に使用される例外オブジェクト。

戻り値

型: System.IObservable<TResult>
指定した例外オブジェクトを使用して例外的に終了する監視可能なシーケンス。

参照

リファレンス

Observable クラス

スロー オーバーロード

System.Reactive.Linq 名前空間