Notification<T> Class

Represents a notification to an observer.

Inheritance Hierarchy

System.Object
  System.Reactive.Notification<T>

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

Syntax

'Declaration
<SerializableAttribute> _
Public MustInherit Class Notification(Of T) _
    Implements IEquatable(Of Notification(Of T))
'Usage
Dim instance As Notification(Of T)
[SerializableAttribute]
public abstract class Notification<T> : IEquatable<Notification<T>>
[SerializableAttribute]
generic<typename T>
public ref class Notification abstract : IEquatable<Notification<T>^>
[<AbstractClassAttribute>]
[<SerializableAttribute>]
type Notification<'T> =  
    class
        interface IEquatable<Notification<'T>>
    end
JScript does not support generic types and methods.

Type Parameters

  • T
    The notification argument type.

The Notification<T> type exposes the following members.

Properties

  Name Description
Public property Exception Returns the exception of an OnError notification or returns null.
Public property HasValue Returns a value that indicates whether the notification has a value.
Public property Kind Gets the kind of notification that is represented.
Public property Value Returns the value of an OnNext notification or throws an exception.

Top

Methods

  Name Description
Public method Accept(IObserver<T>) Invokes the observer's method corresponding to the notification.
Public method Accept(Action<T>, Action<Exception>, Action) Invokes the delegate corresponding to the notification.
Public method Accept<TResult>(Func<T, TResult>, Func<Exception, TResult>, Func<TResult>) Invokes the delegate corresponding to the notification and returns the produced result.
Public method Equals(Object) Indicates whether this instance and a specified object are equal. (Overrides Object.Equals(Object).)
Public method Equals(Notification<T>) Indicates whether this instance and other are equal.
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToObservable() Returns an observable sequence with a single notification, using the immediate scheduler.
Public method ToObservable(IScheduler) Returns an observable sequence with a single notification.
Public method ToString (Inherited from Object.)

Top

Operators

  Name Description
Public operatorStatic member Equality Indicates whether left and right arguments are equal.
Public operatorStatic member Inequality Indicates whether left and right arguments are not equal.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Reactive Namespace