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






executeMethod
canExecuteMethod
isAutomaticRequeryDisabled

Syntax

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

Parameters

executeMethod
canExecuteMethod
isAutomaticRequeryDisabled

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.