Bagikan melalui


CollectionModelBinder<TElement> Konstruktor

Definisi

Overload

CollectionModelBinder<TElement>(IModelBinder)
Kedaluwarsa.

Konstruktor ini usang dan akan dihapus dalam versi yang akan datang. Alternatif yang direkomendasikan adalah kelebihan beban yang juga mengambil ILoggerFactory.

Membuat baru CollectionModelBinder<TElement>.

CollectionModelBinder<TElement>(IModelBinder, ILoggerFactory)

Membuat baru CollectionModelBinder<TElement>.

CollectionModelBinder<TElement>(IModelBinder, ILoggerFactory, Boolean)

Membuat baru CollectionModelBinder<TElement>.

CollectionModelBinder<TElement>(IModelBinder, ILoggerFactory, Boolean, MvcOptions)

Membuat baru CollectionModelBinder<TElement>.

CollectionModelBinder<TElement>(IModelBinder)

Sumber:
CollectionModelBinder.cs
Sumber:
CollectionModelBinder.cs

Perhatian

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

Konstruktor ini usang dan akan dihapus dalam versi yang akan datang. Alternatif yang direkomendasikan adalah kelebihan beban yang juga mengambil ILoggerFactory.

Membuat baru CollectionModelBinder<TElement>.

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)

Parameter

elementBinder
IModelBinder

IModelBinder untuk elemen pengikatan.

Atribut

Berlaku untuk

CollectionModelBinder<TElement>(IModelBinder, ILoggerFactory)

Sumber:
CollectionModelBinder.cs
Sumber:
CollectionModelBinder.cs
Sumber:
CollectionModelBinder.cs
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)

Parameter

elementBinder
IModelBinder

IModelBinder untuk pengikatan TElement.

Keterangan

Pengikat tidak akan menambahkan kesalahan untuk model tingkat atas yang tidak terikat meskipun IsBindingRequired adalah true.

Berlaku untuk

CollectionModelBinder<TElement>(IModelBinder, ILoggerFactory, Boolean)

Sumber:
CollectionModelBinder.cs
Sumber:
CollectionModelBinder.cs
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)

Parameter

elementBinder
IModelBinder

IModelBinder untuk pengikatan TElement.

allowValidatingTopLevelNodes
Boolean

Indikasi bahwa validasi model tingkat atas diaktifkan. Jika true dan IsBindingRequired untuk true model tingkat atas, pengikat menambahkan ModelStateDictionary kesalahan saat model tidak terikat.

Berlaku untuk

CollectionModelBinder<TElement>(IModelBinder, ILoggerFactory, Boolean, MvcOptions)

Sumber:
CollectionModelBinder.cs
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)

Parameter

elementBinder
IModelBinder

IModelBinder untuk pengikatan TElement.

allowValidatingTopLevelNodes
Boolean

Indikasi bahwa validasi model tingkat atas diaktifkan. Jika true dan IsBindingRequired untuk true model tingkat atas, pengikat menambahkan ModelStateDictionary kesalahan saat model tidak terikat.

mvcOptions
MvcOptions

MvcOptions.

Keterangan

Ini adalah konstruktor pilihan CollectionModelBinder<TElement> .

Berlaku untuk