CollectionModelBinder<TElement> 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
CollectionModelBinder<TElement>(IModelBinder) |
Geçersiz.
Bu oluşturucu kullanımdan kaldırıldı ve gelecekteki bir sürümde kaldırılacak. Önerilen alternatif, bir de alan ILoggerFactoryaşırı yüklemedir. Yeni bir CollectionModelBinder<TElement> oluşturur. |
CollectionModelBinder<TElement>(IModelBinder, ILoggerFactory) |
Yeni bir CollectionModelBinder<TElement> oluşturur. |
CollectionModelBinder<TElement>(IModelBinder, ILoggerFactory, Boolean) |
Yeni bir CollectionModelBinder<TElement> oluşturur. |
CollectionModelBinder<TElement>(IModelBinder, ILoggerFactory, Boolean, MvcOptions) |
Yeni bir CollectionModelBinder<TElement> oluşturur. |
CollectionModelBinder<TElement>(IModelBinder)
- Kaynak:
- CollectionModelBinder.cs
- Kaynak:
- CollectionModelBinder.cs
Dikkat
This constructor is obsolete and will be removed in a future version. The recommended alternative is the overload that also takes an ILoggerFactory.
Bu oluşturucu kullanımdan kaldırıldı ve gelecekteki bir sürümde kaldırılacak. Önerilen alternatif, bir de alan ILoggerFactoryaşırı yüklemedir.
Yeni bir CollectionModelBinder<TElement> oluşturur.
public:
CollectionModelBinder(Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinder ^ elementBinder);
public CollectionModelBinder (Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder elementBinder);
[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 CollectionModelBinder (Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder elementBinder);
new Microsoft.AspNetCore.Mvc.ModelBinding.Binders.CollectionModelBinder<'Element> : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder -> Microsoft.AspNetCore.Mvc.ModelBinding.Binders.CollectionModelBinder<'Element>
[<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.CollectionModelBinder<'Element> : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder -> Microsoft.AspNetCore.Mvc.ModelBinding.Binders.CollectionModelBinder<'Element>
Public Sub New (elementBinder As IModelBinder)
Parametreler
- elementBinder
- IModelBinder
IModelBinder bağlama öğeleri için.
- Öznitelikler
Şunlara uygulanır
CollectionModelBinder<TElement>(IModelBinder, ILoggerFactory)
- Kaynak:
- CollectionModelBinder.cs
- Kaynak:
- CollectionModelBinder.cs
- Kaynak:
- CollectionModelBinder.cs
Yeni bir CollectionModelBinder<TElement> oluşturur.
public:
CollectionModelBinder(Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinder ^ elementBinder, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public CollectionModelBinder (Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder elementBinder, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.AspNetCore.Mvc.ModelBinding.Binders.CollectionModelBinder<'Element> : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.Mvc.ModelBinding.Binders.CollectionModelBinder<'Element>
Public Sub New (elementBinder As IModelBinder, loggerFactory As ILoggerFactory)
Parametreler
- elementBinder
- IModelBinder
IModelBinder bağlaması TElement
için .
- loggerFactory
- ILoggerFactory
Açıklamalar
Bağlayıcı, olsa IsBindingRequiredtrue
bile ilişkisiz bir üst düzey model için hata eklemez.
Şunlara uygulanır
CollectionModelBinder<TElement>(IModelBinder, ILoggerFactory, Boolean)
- Kaynak:
- CollectionModelBinder.cs
- Kaynak:
- CollectionModelBinder.cs
Yeni bir CollectionModelBinder<TElement> oluşturur.
public:
CollectionModelBinder(Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinder ^ elementBinder, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, bool allowValidatingTopLevelNodes);
public CollectionModelBinder (Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder elementBinder, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, bool allowValidatingTopLevelNodes);
new Microsoft.AspNetCore.Mvc.ModelBinding.Binders.CollectionModelBinder<'Element> : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder * Microsoft.Extensions.Logging.ILoggerFactory * bool -> Microsoft.AspNetCore.Mvc.ModelBinding.Binders.CollectionModelBinder<'Element>
Public Sub New (elementBinder As IModelBinder, loggerFactory As ILoggerFactory, allowValidatingTopLevelNodes As Boolean)
Parametreler
- elementBinder
- IModelBinder
IModelBinder bağlaması TElement
için .
- loggerFactory
- ILoggerFactory
- allowValidatingTopLevelNodes
- Boolean
Üst düzey modelleri doğrulamanın etkinleştirildiğinin göstergesi. ve IsBindingRequiredtrue
üst düzey bir modele yöneliksetrue
, model bağlı olmadığında bağlayıcı bir ModelStateDictionary hata ekler.
Şunlara uygulanır
CollectionModelBinder<TElement>(IModelBinder, ILoggerFactory, Boolean, MvcOptions)
- Kaynak:
- CollectionModelBinder.cs
Yeni bir CollectionModelBinder<TElement> oluşturur.
public:
CollectionModelBinder(Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinder ^ elementBinder, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, bool allowValidatingTopLevelNodes, Microsoft::AspNetCore::Mvc::MvcOptions ^ mvcOptions);
public CollectionModelBinder (Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder elementBinder, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, bool allowValidatingTopLevelNodes, Microsoft.AspNetCore.Mvc.MvcOptions mvcOptions);
new Microsoft.AspNetCore.Mvc.ModelBinding.Binders.CollectionModelBinder<'Element> : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder * Microsoft.Extensions.Logging.ILoggerFactory * bool * Microsoft.AspNetCore.Mvc.MvcOptions -> Microsoft.AspNetCore.Mvc.ModelBinding.Binders.CollectionModelBinder<'Element>
Public Sub New (elementBinder As IModelBinder, loggerFactory As ILoggerFactory, allowValidatingTopLevelNodes As Boolean, mvcOptions As MvcOptions)
Parametreler
- elementBinder
- IModelBinder
IModelBinder bağlaması TElement
için .
- loggerFactory
- ILoggerFactory
- allowValidatingTopLevelNodes
- Boolean
Üst düzey modelleri doğrulamanın etkinleştirildiğinin göstergesi. ve IsBindingRequiredtrue
üst düzey bir modele yöneliksetrue
, model bağlı olmadığında bağlayıcı bir ModelStateDictionary hata ekler.
- mvcOptions
- MvcOptions
Açıklamalar
Bu, tercih edilen CollectionModelBinder<TElement> oluşturucudur.
Şunlara uygulanır
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin