ModelBinderFactory Costruttori
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
ModelBinderFactory(IModelMetadataProvider, IOptions<MvcOptions>) |
Obsoleti.
Questo costruttore è obsoleto e verrà rimosso in una versione futura. L'alternativa consigliata è l'overload che accetta anche un oggetto IServiceProvider. Crea un nuovo oggetto ModelBinderFactory. |
ModelBinderFactory(IModelMetadataProvider, IOptions<MvcOptions>, IServiceProvider) |
Crea un nuovo oggetto ModelBinderFactory. |
ModelBinderFactory(IModelMetadataProvider, IOptions<MvcOptions>)
- Origine:
- ModelBinderFactory.cs
- Origine:
- ModelBinderFactory.cs
Attenzione
This constructor is obsolete and will be removed in a future version. The recommended alternative is the overload that also takes an IServiceProvider.
Questo costruttore è obsoleto e verrà rimosso in una versione futura. L'alternativa consigliata è l'overload che accetta anche un oggetto IServiceProvider.
Crea un nuovo oggetto 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))
Parametri
- metadataProvider
- IModelMetadataProvider
Oggetto IModelMetadataProvider.
- options
- IOptions<MvcOptions>
Oggetto IOptions<TOptions> per MvcOptions.
- Attributi
Si applica a
ModelBinderFactory(IModelMetadataProvider, IOptions<MvcOptions>, IServiceProvider)
- Origine:
- ModelBinderFactory.cs
- Origine:
- ModelBinderFactory.cs
- Origine:
- ModelBinderFactory.cs
Crea un nuovo oggetto 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)
Parametri
- metadataProvider
- IModelMetadataProvider
Oggetto IModelMetadataProvider.
- options
- IOptions<MvcOptions>
Oggetto IOptions<TOptions> per MvcOptions.
- serviceProvider
- IServiceProvider
Oggetto IServiceProvider.