ModelBaseSubscribe Method (String, ActionObject, NullableGuid) |
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
)
Public Sub Subscribe (
propertyName As String,
onChanged As Action(Of Object),
Optional ownerId As Nullable(Of Guid) = Nothing
)
public:
virtual void Subscribe(
String^ propertyName,
Action<Object^>^ onChanged,
Nullable<Guid> ownerId = nullptr
) sealed
abstract Subscribe :
propertyName : string *
onChanged : Action<Object> *
?ownerId : Nullable<Guid>
(* Defaults:
let _ownerId = defaultArg ownerId null
*)
-> unit
override Subscribe :
propertyName : string *
onChanged : Action<Object> *
?ownerId : Nullable<Guid>
(* Defaults:
let _ownerId = defaultArg ownerId null
*)
-> unit
Parameters
- propertyName
- Type: SystemString
Name of the property. - onChanged
- Type: SystemActionObject
The onchanged action. - ownerId (Optional)
- Type: SystemNullableGuid
The owner identifier.
Implements
ISubscribeSubscribe(String, ActionObject, NullableGuid)Exceptions Exception | Condition |
---|
Exception | Property \ + propertyName + \ could not be +
found for type \ + GetType().ToString() + \! |
See Also