Partilhar via


Notificação<T>. Método Accept (Ação<T>, Exceção> de Ação<, Ação)

Invoca o delegado correspondente à notificação.

Namespace:System.Reactive
Assembly: System.Reactive (em System.Reactive.dll)

Sintaxe

'Declaration
Public MustOverride Sub Accept ( _
    onNext As Action(Of T), _
    onError As Action(Of Exception), _
    onCompleted As Action _
)
'Usage
Dim instance As Notification
Dim onNext As Action(Of T)
Dim onError As Action(Of Exception)
Dim onCompleted As Action

instance.Accept(onNext, onError, onCompleted)
public abstract void Accept(
    Action<T> onNext,
    Action<Exception> onError,
    Action onCompleted
)
public:
virtual void Accept(
    Action<T>^ onNext, 
    Action<Exception^>^ onError, 
    Action^ onCompleted
) abstract
abstract Accept : 
        onNext:Action<'T> * 
        onError:Action<Exception> * 
        onCompleted:Action -> unit 
public abstract function Accept(
    onNext : Action<T>, 
    onError : Action<Exception>, 
    onCompleted : Action
)

Parâmetros

  • Onnext
    Tipo: System.Action<T>
    O delegado a ser invocado para uma notificação OnNext.
  • Oncompleted
    Tipo: System.Action
    O delegado a ser invocado para uma notificação OnCompleted.

Consulte Também

Referência

Classe T> de notificação<

Aceitar Sobrecarga

System.Reactive Namespace