共用方式為


DefaultModelMetadataProvider 建構函式

定義

多載

DefaultModelMetadataProvider(ICompositeMetadataDetailsProvider)

建立新的 DefaultModelMetadataProvider

DefaultModelMetadataProvider(ICompositeMetadataDetailsProvider, IOptions<MvcOptions>)

建立新的 DefaultModelMetadataProvider

DefaultModelMetadataProvider(ICompositeMetadataDetailsProvider)

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

來源:
DefaultModelMetadataProvider.cs
來源:
DefaultModelMetadataProvider.cs
來源:
DefaultModelMetadataProvider.cs
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 存取子。

適用於