Export (0) Print
Expand All

Notification<T> Class

Represents a notification to an observer.

System::Object
  System.Reactive::Notification<T>

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

[SerializableAttribute]
generic<typename T>
public ref class Notification abstract : IEquatable<Notification<T>^>

Type Parameters

T

The notification argument type.

The Notification<T> type exposes the following members.

  NameDescription
Public propertyException Returns the exception of an OnError notification or returns null.
Public propertyHasValue Returns a value that indicates whether the notification has a value.
Public propertyKind Gets the kind of notification that is represented.
Public propertyValue Returns the value of an OnNext notification or throws an exception.
Top

  NameDescription
Public methodAccept(IObserver<T>) Invokes the observer's method corresponding to the notification.
Public methodAccept(Action<T>, Action<Exception>, Action) Invokes the delegate corresponding to the notification.
Public methodAccept<TResult>(Func<T, TResult>, Func<Exception, TResult>, Func<TResult>) 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<T>) 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

  NameDescription
Public operatorStatic memberEquality Indicates whether left and right arguments are equal.
Public operatorStatic memberInequality Indicates whether left and right arguments are not equal.
Top

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