Sdílet prostřednictvím


KeyValuePairModelBinder<TKey,TValue> Konstruktory

Definice

Přetížení

KeyValuePairModelBinder<TKey,TValue>(IModelBinder, IModelBinder)
Zastaralé.

Tento konstruktor je zastaralý a v budoucí verzi bude odebrán. Doporučenou alternativou je přetížení, které také přebírá ILoggerFactory.

Vytvoří nový objekt KeyValuePair<TKey,TValue>.

KeyValuePairModelBinder<TKey,TValue>(IModelBinder, IModelBinder, ILoggerFactory)

Vytvoří nový objekt KeyValuePair<TKey,TValue>.

KeyValuePairModelBinder<TKey,TValue>(IModelBinder, IModelBinder)

Zdroj:
KeyValuePairModelBinder.cs
Zdroj:
KeyValuePairModelBinder.cs

Upozornění

This constructor is obsolete and will be removed in a future version. The recommended alternative is the overload that also takes an ILoggerFactory.

Tento konstruktor je zastaralý a v budoucí verzi bude odebrán. Doporučenou alternativou je přetížení, které také přebírá ILoggerFactory.

Vytvoří nový objekt KeyValuePair<TKey,TValue>.

public:
 KeyValuePairModelBinder(Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinder ^ keyBinder, Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinder ^ valueBinder);
public KeyValuePairModelBinder (Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder keyBinder, Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder valueBinder);
[System.Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative is the overload that also takes an ILoggerFactory.")]
public KeyValuePairModelBinder (Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder keyBinder, Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder valueBinder);
new Microsoft.AspNetCore.Mvc.ModelBinding.Binders.KeyValuePairModelBinder<'Key, 'Value> : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder * Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder -> Microsoft.AspNetCore.Mvc.ModelBinding.Binders.KeyValuePairModelBinder<'Key, 'Value>
[<System.Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative is the overload that also takes an ILoggerFactory.")>]
new Microsoft.AspNetCore.Mvc.ModelBinding.Binders.KeyValuePairModelBinder<'Key, 'Value> : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder * Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder -> Microsoft.AspNetCore.Mvc.ModelBinding.Binders.KeyValuePairModelBinder<'Key, 'Value>
Public Sub New (keyBinder As IModelBinder, valueBinder As IModelBinder)

Parametry

keyBinder
IModelBinder

TKeyPro IModelBinder .

valueBinder
IModelBinder

TValuePro IModelBinder .

Atributy

Platí pro

KeyValuePairModelBinder<TKey,TValue>(IModelBinder, IModelBinder, ILoggerFactory)

Zdroj:
KeyValuePairModelBinder.cs
Zdroj:
KeyValuePairModelBinder.cs
Zdroj:
KeyValuePairModelBinder.cs

Vytvoří nový objekt KeyValuePair<TKey,TValue>.

public:
 KeyValuePairModelBinder(Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinder ^ keyBinder, Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinder ^ valueBinder, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public KeyValuePairModelBinder (Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder keyBinder, Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder valueBinder, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.AspNetCore.Mvc.ModelBinding.Binders.KeyValuePairModelBinder<'Key, 'Value> : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder * Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.Mvc.ModelBinding.Binders.KeyValuePairModelBinder<'Key, 'Value>
Public Sub New (keyBinder As IModelBinder, valueBinder As IModelBinder, loggerFactory As ILoggerFactory)

Parametry

keyBinder
IModelBinder

TKeyPro IModelBinder .

valueBinder
IModelBinder

TValuePro IModelBinder .

loggerFactory
ILoggerFactory

Hodnota ILoggerFactory

Platí pro