Share via


InferParameterBindingInfoConvention Sınıf

Tanım

IActionModelConvention Parametreler için çıkarımda bulunan BindingSource bir.

public ref class InferParameterBindingInfoConvention : Microsoft::AspNetCore::Mvc::ApplicationModels::IActionModelConvention
public class InferParameterBindingInfoConvention : Microsoft.AspNetCore.Mvc.ApplicationModels.IActionModelConvention
type InferParameterBindingInfoConvention = class
    interface IActionModelConvention
Public Class InferParameterBindingInfoConvention
Implements IActionModelConvention
Devralma
InferParameterBindingInfoConvention
Uygulamalar

Açıklamalar

Bu kuralın amacı sezgisel ve belge BindingSource çıkarımlarını kolay hale getirmektir. Kurallar şunlardır:

Oluşturucular

InferParameterBindingInfoConvention(IModelMetadataProvider)

yeni bir örneğini InferParameterBindingInfoConventionbaşlatır.

InferParameterBindingInfoConvention(IModelMetadataProvider, IServiceProviderIsService)

yeni bir örneğini InferParameterBindingInfoConventionbaşlatır.

Yöntemler

Apply(ActionModel)

kuralına uygulamak için ActionModelçağrıldı.

ShouldApply(ActionModel)

Eylemin uygulanıp uygulanmayacağını belirlemek için çağrılır.

Şunlara uygulanır