Share via


AsyncObservableObject Class

Definition

An observable object that can raise its PropertyChanged events asynchronously, on the main thread.

public ref class AsyncObservableObject : Microsoft::VisualStudio::PlatformUI::ObservableObject
[System.Runtime.Serialization.DataContract]
public class AsyncObservableObject : Microsoft.VisualStudio.PlatformUI.ObservableObject
[<System.Runtime.Serialization.DataContract>]
type AsyncObservableObject = class
    inherit ObservableObject
Public Class AsyncObservableObject
Inherits ObservableObject
Inheritance
AsyncObservableObject
Attributes

Remarks

If ObservableObject.SetProperty is called to set a property's value, the PropertyChanged event is raised on the ambient thread. If AsyncObservableObject.SetPropertyNotifyAsync is called to set a property's value, the PropertyChanged event is raised on the main thread.

Constructors

AsyncObservableObject(JoinableTaskFactory)

Initializes a new instance of the AsyncObservableObject class.

Properties

HasPropertyChangedEventSinks

Returns a value indicating whether this object's PropertyChanged event has any subscriptions

(Inherited from ObservableObject)

Methods

NotifyPropertyChanged(String)

The method that is called when a property has changed.

(Inherited from ObservableObject)
NotifyPropertyChangedAsync(CancellationToken, String)

Notifies of a change to a property on this object. The PropertyChanged event is raised on the main thread.

SetProperty(IntPtr, IntPtr, String) (Inherited from ObservableObject)
SetProperty(UIntPtr, UIntPtr, String) (Inherited from ObservableObject)
SetProperty<T>(T, T, Action, String)

Checks for a change to a value, and if the value is different, stores the value and notifies of property changes.

(Inherited from ObservableObject)
SetProperty<T>(T, T, Action<T,T>, String)

Checks for a change to a value, and if the value is different, stores the value and notifies of property changes.

(Inherited from ObservableObject)
SetProperty<T>(T, T, String)

Checks for a change to a value, and if the value is different, stores the value and notifies of property changes.

(Inherited from ObservableObject)
SetPropertyNotifyAsync(IntPtr, IntPtr, Task, CancellationToken, String)

Checks for a change to an IntPtr value, and if the value is different, stores the value and asynchronously notifies of property changes.

SetPropertyNotifyAsync(UIntPtr, UIntPtr, Task, CancellationToken, String)

Checks for a change to a UIntPtr value, and if the value is different, stores the value and asynchronously notifies of property changes.

SetPropertyNotifyAsync<T>(T, T, Action, Task, CancellationToken, String)

Checks for a change to a value, and if the value is different, stores the value and asynchronously notifies of property changes.

SetPropertyNotifyAsync<T>(T, T, Action<T,T>, Task, CancellationToken, String)

Checks for a change to a value, and if the value is different, stores the value and asynchronously notifies of property changes.

SetPropertyNotifyAsync<T>(T, T, Task, CancellationToken, String)

Checks for a change to a value, and if the value is different, stores the value and asynchronously notifies of property changes.

Events

PropertyChanged

The event that is raised when a property has changed.

(Inherited from ObservableObject)

Applies to