共用方式為


InferParameterBindingInfoConvention 建構函式

定義

多載

InferParameterBindingInfoConvention(IModelMetadataProvider)

初始化 InferParameterBindingInfoConvention 的新執行個體。

InferParameterBindingInfoConvention(IModelMetadataProvider, IServiceProviderIsService)

初始化 InferParameterBindingInfoConvention 的新執行個體。

InferParameterBindingInfoConvention(IModelMetadataProvider)

來源:
InferParameterBindingInfoConvention.cs
來源:
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)

來源:
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 的服務。

適用於