PostSharp6.6//API Reference/Post­Sharp.​Patterns.​Model Namespace/Notify­Property­Changed­Services Class/Notify­Property­Changed­Services Methods/Notify­Property­Changed­Services.​Signal­Property­Changing Method

NotifyPropertyChangedServices.SignalPropertyChanging Method

Signals the PropertyChanging event of an object that is instrumented with the NotifyPropertyChangedAttribute aspect.

Namespace:  PostSharp.Patterns.Model
Assembly:  PostSharp.Patterns.Model (in PostSharp.Patterns.Model.dll) Version: 6.6.7.0 (6.6.7.0)
Syntax
C#
public static void SignalPropertyChanging(
	Object instance,
	string propertyName
)

Parameters

instance
Type: System.Object
An instance of a class instrumented with the NotifyPropertyChangedAttribute aspect
propertyName
Type: System.String
Name of the changed property.
Remarks

This methods invokes the OnPropertyChanging method on the instance object. If the method has been defined in user code, it will be invoked.

The event is buffered and will actually be raised when the current thread exits the scope of the instance parameter. This methods invokes the OnPropertyChanging method synchronously.

See Also