BindingContextExtensions.GetOrCreateModelBinder Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Pobiera powiązanie modelu dla deskryptora określonej wartości.
public:
[System::Runtime::CompilerServices::Extension]
static System::CommandLine::NamingConventionBinder::ModelBinder ^ GetOrCreateModelBinder(System::CommandLine::Binding::BindingContext ^ bindingContext, System::CommandLine::Binding::IValueDescriptor ^ valueDescriptor);
public static System.CommandLine.NamingConventionBinder.ModelBinder GetOrCreateModelBinder(this System.CommandLine.Binding.BindingContext bindingContext, System.CommandLine.Binding.IValueDescriptor valueDescriptor);
static member GetOrCreateModelBinder : System.CommandLine.Binding.BindingContext * System.CommandLine.Binding.IValueDescriptor -> System.CommandLine.NamingConventionBinder.ModelBinder
<Extension()>
Public Function GetOrCreateModelBinder (bindingContext As BindingContext, valueDescriptor As IValueDescriptor) As ModelBinder
Parametry
- bindingContext
- BindingContext
- valueDescriptor
- IValueDescriptor
Zwraca
Powiązanie modelu dla określonego deskryptora wartości.