Observer.Create<T> Method (Action<T>, Action<Exception>, Action)
Namespace: Microsoft.Phone.Reactive
Assembly: Microsoft.Phone.Reactive (in Microsoft.Phone.Reactive.dll)
Syntax
'Declaration
Public Shared Function Create(Of T) ( _
onNext As Action(Of T), _
onError As Action(Of Exception), _
onCompleted As Action _
) As IObserver(Of T)
public static IObserver<T> Create<T>(
Action<T> onNext,
Action<Exception> onError,
Action onCompleted
)
public:
generic<typename T>
static IObserver<T>^ Create(
Action<T>^ onNext,
Action<Exception^>^ onError,
Action^ onCompleted
)
static member Create :
onNext:Action<'T> *
onError:Action<Exception> *
onCompleted:Action -> IObserver<'T>
Type Parameters
- T
Parameters
- onNext
Type: System.Action<T>
- onError
Type: System.Action<Exception>
- onCompleted
Type: System.Action
Return Value
Type: System.IObserver<T>
Version Information
.NET for Windows Phone apps
Supported in: Windows Phone 8, Silverlight 8.1
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.