DelegateCommand Oluşturucular
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Aşırı Yüklemeler
| DelegateCommand(Action) |
DelegateCommand sınıfının yeni bir örneğini başlatır. Bu oluşturucuyu kullanarak DelegateCommand 'i her zaman yürütebilmesi için bir komutta elde edin. |
| DelegateCommand(Action<Object>) |
DelegateCommand sınıfının yeni bir örneğini başlatır. Bu oluşturucuyu kullanarak DelegateCommand 'i her zaman yürütebilmesi için bir komutta elde edin. |
| DelegateCommand(Action, Func<Boolean>) |
DelegateCommand sınıfının yeni bir örneğini başlatır. |
| DelegateCommand(Action<Object>, Predicate<Object>) |
DelegateCommand sınıfının yeni bir örneğini başlatır. |
| DelegateCommand(Action, Func<Boolean>, JoinableTaskFactory) |
DelegateCommand sınıfının yeni bir örneğini başlatır. |
| DelegateCommand(Action<Object>, Predicate<Object>, JoinableTaskFactory) |
DelegateCommand sınıfının yeni bir örneğini başlatır. |
DelegateCommand(Action)
DelegateCommand sınıfının yeni bir örneğini başlatır. Bu oluşturucuyu kullanarak DelegateCommand 'i her zaman yürütebilmesi için bir komutta elde edin.
public:
DelegateCommand(Action ^ execute);
public DelegateCommand (Action execute);
new Microsoft.VisualStudio.PlatformUI.DelegateCommand : Action -> Microsoft.VisualStudio.PlatformUI.DelegateCommand
Public Sub New (execute As Action)
Parametreler
- execute
- Action
Komut yürütüldüğünde çalıştırılacak eylem.
Şunlara uygulanır
DelegateCommand(Action<Object>)
DelegateCommand sınıfının yeni bir örneğini başlatır. Bu oluşturucuyu kullanarak DelegateCommand 'i her zaman yürütebilmesi için bir komutta elde edin.
public:
DelegateCommand(Action<System::Object ^> ^ execute);
public DelegateCommand (Action<object> execute);
new Microsoft.VisualStudio.PlatformUI.DelegateCommand : Action<obj> -> Microsoft.VisualStudio.PlatformUI.DelegateCommand
Public Sub New (execute As Action(Of Object))
Parametreler
Şunlara uygulanır
DelegateCommand(Action, Func<Boolean>)
DelegateCommand sınıfının yeni bir örneğini başlatır.
public:
DelegateCommand(Action ^ execute, Func<bool> ^ canExecute);
public DelegateCommand (Action execute, Func<bool> canExecute);
new Microsoft.VisualStudio.PlatformUI.DelegateCommand : Action * Func<bool> -> Microsoft.VisualStudio.PlatformUI.DelegateCommand
Public Sub New (execute As Action, canExecute As Func(Of Boolean))
Parametreler
- execute
- Action
Komut yürütüldüğünde çalıştırılacak eylem.
Bu komutun yürütülebilir olup olmadığını değerlendirmek için işlev. Bu parametre null ise, komut her zaman çalıştırılabilir olur.
Şunlara uygulanır
DelegateCommand(Action<Object>, Predicate<Object>)
DelegateCommand sınıfının yeni bir örneğini başlatır.
public:
DelegateCommand(Action<System::Object ^> ^ execute, Predicate<System::Object ^> ^ canExecute);
public DelegateCommand (Action<object> execute, Predicate<object> canExecute);
new Microsoft.VisualStudio.PlatformUI.DelegateCommand : Action<obj> * Predicate<obj> -> Microsoft.VisualStudio.PlatformUI.DelegateCommand
Public Sub New (execute As Action(Of Object), canExecute As Predicate(Of Object))
Parametreler
Bu komutun yürütülebilir olup olmadığını değerlendirmek için işlev. Bu parametre null ise, komut her zaman çalıştırılabilir olur.
Şunlara uygulanır
DelegateCommand(Action, Func<Boolean>, JoinableTaskFactory)
DelegateCommand sınıfının yeni bir örneğini başlatır.
public:
DelegateCommand(Action ^ execute, Func<bool> ^ canExecute, Microsoft::VisualStudio::Threading::JoinableTaskFactory ^ jtf);
public DelegateCommand (Action execute, Func<bool> canExecute, Microsoft.VisualStudio.Threading.JoinableTaskFactory jtf);
new Microsoft.VisualStudio.PlatformUI.DelegateCommand : Action * Func<bool> * Microsoft.VisualStudio.Threading.JoinableTaskFactory -> Microsoft.VisualStudio.PlatformUI.DelegateCommand
Public Sub New (execute As Action, canExecute As Func(Of Boolean), jtf As JoinableTaskFactory)
Parametreler
- execute
- Action
Komut yürütüldüğünde çalıştırılacak eylem.
Bu komutun yürütülebilir olup olmadığını değerlendirmek için işlev. Bu parametre null ise, komut her zaman çalıştırılabilir olur.
Komut için görev fabrikası. Bu null değilse, olayı oluşturmadan önce komut ana iş parçacığına geçiş yapar CanExecuteChanged .
Şunlara uygulanır
DelegateCommand(Action<Object>, Predicate<Object>, JoinableTaskFactory)
DelegateCommand sınıfının yeni bir örneğini başlatır.
public:
DelegateCommand(Action<System::Object ^> ^ execute, Predicate<System::Object ^> ^ canExecute, Microsoft::VisualStudio::Threading::JoinableTaskFactory ^ jtf);
public DelegateCommand (Action<object> execute, Predicate<object> canExecute, Microsoft.VisualStudio.Threading.JoinableTaskFactory jtf);
new Microsoft.VisualStudio.PlatformUI.DelegateCommand : Action<obj> * Predicate<obj> * Microsoft.VisualStudio.Threading.JoinableTaskFactory -> Microsoft.VisualStudio.PlatformUI.DelegateCommand
Public Sub New (execute As Action(Of Object), canExecute As Predicate(Of Object), jtf As JoinableTaskFactory)
Parametreler
Bu komutun yürütülebilir olup olmadığını değerlendirmek için işlev. Bu parametre null ise, komut her zaman çalıştırılabilir olur.
Komut için görev fabrikası. Bu null değilse, olayı oluşturmadan önce komut ana iş parçacığına geçiş yapar CanExecuteChanged .