InferParameterBindingInfoConvention 构造函数

定义

重载

InferParameterBindingInfoConvention(IModelMetadataProvider)

初始化 InferParameterBindingInfoConvention 的新实例。

InferParameterBindingInfoConvention(IModelMetadataProvider, IServiceProviderIsService)

初始化 InferParameterBindingInfoConvention 的新实例。

InferParameterBindingInfoConvention(IModelMetadataProvider)

Source:
InferParameterBindingInfoConvention.cs
Source:
InferParameterBindingInfoConvention.cs

初始化 InferParameterBindingInfoConvention 的新实例。

public:
 InferParameterBindingInfoConvention(Microsoft::AspNetCore::Mvc::ModelBinding::IModelMetadataProvider ^ modelMetadataProvider);
public InferParameterBindingInfoConvention (Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider modelMetadataProvider);
new Microsoft.AspNetCore.Mvc.ApplicationModels.InferParameterBindingInfoConvention : Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider -> Microsoft.AspNetCore.Mvc.ApplicationModels.InferParameterBindingInfoConvention
Public Sub New (modelMetadataProvider As IModelMetadataProvider)

参数

modelMetadataProvider
IModelMetadataProvider

模型元数据提供程序。

适用于

InferParameterBindingInfoConvention(IModelMetadataProvider, IServiceProviderIsService)

Source:
InferParameterBindingInfoConvention.cs

初始化 InferParameterBindingInfoConvention 的新实例。

public InferParameterBindingInfoConvention (Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider modelMetadataProvider, Microsoft.Extensions.DependencyInjection.IServiceProviderIsService serviceProviderIsService);
new Microsoft.AspNetCore.Mvc.ApplicationModels.InferParameterBindingInfoConvention : Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider * Microsoft.Extensions.DependencyInjection.IServiceProviderIsService -> Microsoft.AspNetCore.Mvc.ApplicationModels.InferParameterBindingInfoConvention
Public Sub New (modelMetadataProvider As IModelMetadataProvider, serviceProviderIsService As IServiceProviderIsService)

参数

modelMetadataProvider
IModelMetadataProvider

模型元数据提供程序。

serviceProviderIsService
IServiceProviderIsService

用于确定类型是否可用的 IServiceProvider服务。

适用于