SimpleCommand Constructor
Namespace: Microsoft.TeamFoundation.Build.Controls
Assembly: Microsoft.TeamFoundation.Build.Controls (in Microsoft.TeamFoundation.Build.Controls.dll)
Syntax
'Declaration
Public Sub New ( _
canExecute As Func(Of Object, Boolean), _
execute As Action(Of Object) _
)
public SimpleCommand(
Func<Object, bool> canExecute,
Action<Object> execute
)
public:
SimpleCommand(
Func<Object^, bool>^ canExecute,
Action<Object^>^ execute
)
new :
canExecute:Func<Object, bool> *
execute:Action<Object> -> SimpleCommand
public function SimpleCommand(
canExecute : Func<Object, boolean>,
execute : Action<Object>
)
Parameters
- canExecute
Type: System.Func<Object, Boolean>
- execute
Type: System.Action<Object>
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.