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






executeMethod
canExecuteMethod
isAutomaticRequeryDisabled
Constructor

Syntax

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