DefaultModelMetadataProvider 构造函数

定义

重载

DefaultModelMetadataProvider(ICompositeMetadataDetailsProvider)

创建一个新的 DefaultModelMetadataProvider

DefaultModelMetadataProvider(ICompositeMetadataDetailsProvider, IOptions<MvcOptions>)

创建一个新的 DefaultModelMetadataProvider

DefaultModelMetadataProvider(ICompositeMetadataDetailsProvider)

Source:
DefaultModelMetadataProvider.cs
Source:
DefaultModelMetadataProvider.cs
Source:
DefaultModelMetadataProvider.cs

创建一个新的 DefaultModelMetadataProvider

public:
 DefaultModelMetadataProvider(Microsoft::AspNetCore::Mvc::ModelBinding::Metadata::ICompositeMetadataDetailsProvider ^ detailsProvider);
public DefaultModelMetadataProvider (Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ICompositeMetadataDetailsProvider detailsProvider);
new Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DefaultModelMetadataProvider : Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ICompositeMetadataDetailsProvider -> Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DefaultModelMetadataProvider
Public Sub New (detailsProvider As ICompositeMetadataDetailsProvider)

参数

适用于

DefaultModelMetadataProvider(ICompositeMetadataDetailsProvider, IOptions<MvcOptions>)

Source:
DefaultModelMetadataProvider.cs
Source:
DefaultModelMetadataProvider.cs
Source:
DefaultModelMetadataProvider.cs

创建一个新的 DefaultModelMetadataProvider

public:
 DefaultModelMetadataProvider(Microsoft::AspNetCore::Mvc::ModelBinding::Metadata::ICompositeMetadataDetailsProvider ^ detailsProvider, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Mvc::MvcOptions ^> ^ optionsAccessor);
public DefaultModelMetadataProvider (Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ICompositeMetadataDetailsProvider detailsProvider, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcOptions> optionsAccessor);
new Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DefaultModelMetadataProvider : Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ICompositeMetadataDetailsProvider * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcOptions> -> Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DefaultModelMetadataProvider
Public Sub New (detailsProvider As ICompositeMetadataDetailsProvider, optionsAccessor As IOptions(Of MvcOptions))

参数

optionsAccessor
IOptions<MvcOptions>

MvcOptions访问器。

适用于