Sdílet prostřednictvím


ModelBinderFactory Konstruktory

Definice

Přetížení

ModelBinderFactory(IModelMetadataProvider, IOptions<MvcOptions>)
Zastaralé.

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

Vytvoří nový objekt ModelBinderFactory.

ModelBinderFactory(IModelMetadataProvider, IOptions<MvcOptions>, IServiceProvider)

Vytvoří nový objekt ModelBinderFactory.

ModelBinderFactory(IModelMetadataProvider, IOptions<MvcOptions>)

Zdroj:
ModelBinderFactory.cs
Zdroj:
ModelBinderFactory.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 IServiceProvider.

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

Vytvoří nový objekt ModelBinderFactory.

public:
 ModelBinderFactory(Microsoft::AspNetCore::Mvc::ModelBinding::IModelMetadataProvider ^ metadataProvider, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Mvc::MvcOptions ^> ^ options);
public ModelBinderFactory (Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcOptions> options);
[System.Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative is the overload that also takes an IServiceProvider.")]
public ModelBinderFactory (Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcOptions> options);
new Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderFactory : Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcOptions> -> Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderFactory
[<System.Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative is the overload that also takes an IServiceProvider.")>]
new Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderFactory : Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcOptions> -> Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderFactory
Public Sub New (metadataProvider As IModelMetadataProvider, options As IOptions(Of MvcOptions))

Parametry

Atributy

Platí pro

ModelBinderFactory(IModelMetadataProvider, IOptions<MvcOptions>, IServiceProvider)

Zdroj:
ModelBinderFactory.cs
Zdroj:
ModelBinderFactory.cs
Zdroj:
ModelBinderFactory.cs

Vytvoří nový objekt ModelBinderFactory.

public:
 ModelBinderFactory(Microsoft::AspNetCore::Mvc::ModelBinding::IModelMetadataProvider ^ metadataProvider, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Mvc::MvcOptions ^> ^ options, IServiceProvider ^ serviceProvider);
public ModelBinderFactory (Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider metadataProvider, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcOptions> options, IServiceProvider serviceProvider);
new Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderFactory : Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcOptions> * IServiceProvider -> Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderFactory
Public Sub New (metadataProvider As IModelMetadataProvider, options As IOptions(Of MvcOptions), serviceProvider As IServiceProvider)

Parametry

serviceProvider
IServiceProvider

Hodnota IServiceProvider

Platí pro