ModelBaseSubscribeT Method (ExpressionFuncT, 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<T>(
Expression<Func<T>> property,
Action<Object> onChanged,
Nullable<Guid> ownerId = null
)
Public Sub Subscribe(Of T) (
property As Expression(Of Func(Of T)),
onChanged As Action(Of Object),
Optional ownerId As Nullable(Of Guid) = Nothing
)
public:
generic<typename T>
virtual void Subscribe(
Expression<Func<T>^>^ property,
Action<Object^>^ onChanged,
Nullable<Guid> ownerId = nullptr
) sealed
abstract Subscribe :
property : Expression<Func<'T>> *
onChanged : Action<Object> *
?ownerId : Nullable<Guid>
(* Defaults:
let _ownerId = defaultArg ownerId null
*)
-> unit
override Subscribe :
property : Expression<Func<'T>> *
onChanged : Action<Object> *
?ownerId : Nullable<Guid>
(* Defaults:
let _ownerId = defaultArg ownerId null
*)
-> unit
Parameters
- property
- Type: System.Linq.ExpressionsExpressionFuncT
The property. - onChanged
- Type: SystemActionObject
The onchanged action. - ownerId (Optional)
- Type: SystemNullableGuid
The owner identifier.
Type Parameters
- T
Implements
ISubscribeSubscribeT(ExpressionFuncT, ActionObject, NullableGuid)See Also