Intersoft ClientUI Documentation
DelegateCommand Constructor(Action<Object>,Func<Object,Boolean>)
See Also  Send Feedback
Intersoft.Client.Framework.Input Namespace > DelegateCommand Class > DelegateCommand Constructor : DelegateCommand Constructor(Action<Object>,Func<Object,Boolean>)






executeMethod
canExecuteMethod

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal executeMethod As Action(Of Object), _
   ByVal canExecuteMethod As Func(Of Object,Boolean) _
)
Visual Basic (Usage)Copy Code
Dim executeMethod As Action(Of Object)
Dim canExecuteMethod As Func(Of Object,Boolean)
 
Dim instance As New DelegateCommand(executeMethod, canExecuteMethod)
C# 
public DelegateCommand( 
   Action<object> executeMethod,
   Func<object,bool> canExecuteMethod
)
Delphi 
public DelegateCommand( 
    executeMethod: Action;
    canExecuteMethod: Func
); 
JScript 
public function DelegateCommand( 
   executeMethod : Action,
   canExecuteMethod : Func
);
Managed Extensions for C++ 
public: DelegateCommand( 
   Action<Object*>* executeMethod,
   Func<Object*,bool>* canExecuteMethod
)
C++/CLI 
public:
DelegateCommand( 
   Action<Object^>^ executeMethod,
   Func<Object^,bool>^ canExecuteMethod
)

Parameters

executeMethod
canExecuteMethod

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.