Notification(T)

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

NameDescriptionPublic propertyExceptionReturns the exception of an OnError notification or returns null.Public propertyHasValueReturns a value that indicates whether the notification has a value.Public propertyKindGets the kind of notification that is represented.Public propertyValueReturns the value of an OnNext notification or throws an exception.Top

Methods

NameDescriptionPublic methodAccept(IObserver)Invokes the observer's method corresponding to the notification.Public methodAccept(Action, Action, Action)Invokes the delegate corresponding to the notification.Public methodAccept(Func<T, TResult>, Func<Exception, TResult>, Func)Invokes the delegate corresponding to the notification and returns the produced result.Public methodEquals(Object)Indicates whether this instance and a specified object are equal. (Overrides Object.Equals(Object).)Public methodEquals(Notification)Indicates whether this instance and other are equal.Protected methodFinalize(Inherited from Object.)Public methodGetHashCode(Inherited from Object.)Public methodGetType(Inherited from Object.)Protected methodMemberwiseClone(Inherited from Object.)Public methodToObservable()Returns an observable sequence with a single notification, using the immediate scheduler.Public methodToObservable(IScheduler)Returns an observable sequence with a single notification.Public methodToString(Inherited from Object.)Top

Operators

NameDescriptionPublic operatorStatic memberEqualityIndicates whether left and right arguments are equal.Public operatorStatic memberInequalityIndicates 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

Notification<T> Properties

Include Protected Members
Include Inherited Members

The Notification<T> type exposes the following members.

Properties

NameDescriptionPublic propertyExceptionReturns the exception of an OnError notification or returns null.Public propertyHasValueReturns a value that indicates whether the notification has a value.Public propertyKindGets the kind of notification that is represented.Public propertyValueReturns the value of an OnNext notification or throws an exception.Top

See Also

Reference

Notification<T> Class

System.Reactive Namespace

Notification<T> Methods

Include Protected Members
Include Inherited Members

The Notification<T> type exposes the following members.

Methods

NameDescriptionPublic methodAccept(IObserver)Invokes the observer's method corresponding to the notification.Public methodAccept(Action, Action, Action)Invokes the delegate corresponding to the notification.Public methodAccept(Func<T, TResult>, Func<Exception, TResult>, Func)Invokes the delegate corresponding to the notification and returns the produced result.Public methodEquals(Object)Indicates whether this instance and a specified object are equal. (Overrides Object.Equals(Object).)Public methodEquals(Notification)Indicates whether this instance and other are equal.Protected methodFinalize(Inherited from Object.)Public methodGetHashCode(Inherited from Object.)Public methodGetType(Inherited from Object.)Protected methodMemberwiseClone(Inherited from Object.)Public methodToObservable()Returns an observable sequence with a single notification, using the immediate scheduler.Public methodToObservable(IScheduler)Returns an observable sequence with a single notification.Public methodToString(Inherited from Object.)Top

See Also

Reference

Notification<T> Class

System.Reactive Namespace

Notification<T> Operators

Include Protected Members
Include Inherited Members

The Notification<T> type exposes the following members.

Operators

NameDescriptionPublic operatorStatic memberEqualityIndicates whether left and right arguments are equal.Public operatorStatic memberInequalityIndicates whether left and right arguments are not equal.Top

See Also

Reference

Notification<T> Class

System.Reactive Namespace