Provides utility methods for working with the NotifyPropertyChangedAttribute aspect.
Namespace: PostSharp.Patterns.Model
Assembly: PostSharp.Patterns.Model.dll
Syntax
public static class NotifyPropertyChangedServicesRemarks
The NotifyPropertyChangedAttribute aspect buffers change notifications in a per-thread buffer and raises them when the control flow exits the changed object. Use RaiseEventsImmediate(object) to flush the buffer for an object before that, and SuspendEvents() and ResumeEvents() to hold notifications back over a longer piece of code.
Properties
| Name | Description |
|---|---|
| PropertyChangingAdapter | Gets or sets the currently active NotifyPropertyChangingAdapter object. |
Methods
| Name | Description |
|---|---|
| RaiseEventsImmediate(object) | Raises all PropertyChanged events that are currently stored in the event buffer for the current thread and a given object. |
| ResumeEvents() | Resumes the raising of PropertyChanged events for the current thread after it has been suspended by the SuspendEvents() method. |
| SignalPropertyChanged(object, string) | Signals the PropertyChanged event of an object that is instrumented with the NotifyPropertyChangedAttribute aspect. |
| SignalPropertyChanging(object, string) | Signals the |
| SuspendEvents() | Suspends the raising of PropertyChanged events for the current thread. |