Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library

Notification<T> Class

March 22, 2012

Represents a notification to an observer.

Namespace:  Microsoft.Phone.Reactive
Assembly:  Microsoft.Phone.Reactive (in Microsoft.Phone.Reactive.dll)

public abstract class Notification<T> : IEquatable<Notification<T>>

Type Parameters

T

The Notification<T> type exposes the following members.

  NameDescription
Public propertyException Returns the exception of an OnError notification or returns null.
Public propertyHasValue Returns whether the notification has a value.
Public propertyKind Gets the kind of notification that is represented.
Public propertyValueReturns 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>(IObserver<T, TResult>)Invokes the observer's method corresponding to the notification and returns the produced result.
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 methodGetHashCodeReturns the hash code for this instance. (Overrides Object.GetHashCode().)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top

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

  NameDescription
Public Extension MethodToObservable<T>()Overloaded. Converts the Notification to an Observable. (Defined by Notification.)
Public Extension MethodToObservable<T>(IScheduler)Overloaded. Converts the Notification to an Observable. (Defined by Notification.)
Top

Windows Phone OS

Supported in: 7.1, 7.0

Windows Phone

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:
© 2015 Microsoft