Share via


RelayCommand Constructor (Action<Object>, Predicate<Object>)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Creates a new command.

Namespace:  Microsoft.TeamFoundation.MVVM
Assembly:  Microsoft.TeamFoundation.Controls (in Microsoft.TeamFoundation.Controls.dll)

Syntax

'Declaration
Public Sub New ( _
    execute As Action(Of Object), _
    canExecute As Predicate(Of Object) _
)
public RelayCommand(
    Action<Object> execute,
    Predicate<Object> canExecute
)
public:
RelayCommand(
    Action<Object^>^ execute, 
    Predicate<Object^>^ canExecute
)
new : 
        execute:Action<Object> * 
        canExecute:Predicate<Object> -> RelayCommand
public function RelayCommand(
    execute : Action<Object>, 
    canExecute : Predicate<Object>
)

Parameters

.NET Framework Security

See Also

Reference

RelayCommand Class

RelayCommand Overload

Microsoft.TeamFoundation.MVVM Namespace