Click or drag to resize

ModelBase.Subscribe Method (String, Action<Object>, Nullable<Guid>)

Subscribes an action to a specific property that will be called during that property's OnPropertyChanged event.

Namespace:  Xcalibur.Extensions.MVVM.Models
Assembly:  Xcalibur.Extensions.MVVM (in Xcalibur.Extensions.MVVM.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public void Subscribe(
	string propertyName,
	Action<Object> onChanged,
	Nullable<Guid> ownerId = null
)

Parameters

propertyName
Type: System.String
Name of the property.
onChanged
Type: System.Action<Object>
The onchanged action.
ownerId (Optional)
Type: System.Nullable<Guid>
The owner identifier.

Implements

ISubscribe.Subscribe(String, Action<Object>, Nullable<Guid>)
Exceptions
ExceptionCondition
ExceptionProperty \ + propertyName + \ could not be + found for type \ + GetType().ToString() + \!
See Also