ExcludeBindingMetadataProvider Class¶
An Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.IBindingMetadataProvider
which configures Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata.IsBindingAllowed
to
<code>false</code> for matching types.
- Namespace
Microsoft.AspNetCore.Mvc.ModelBinding.Metadata
- Assemblies
- Microsoft.AspNetCore.Mvc.Core
Syntax¶
public class ExcludeBindingMetadataProvider : IBindingMetadataProvider, IMetadataDetailsProvider
-
class
Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.
ExcludeBindingMetadataProvider
Constructors¶
-
ExcludeBindingMetadataProvider
(System.Type)¶ Creates a new
Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ExcludeBindingMetadataProvider
for the given <em>type</em>.Arguments: type (System.Type) – The System.Type
. All properties of thisSystem.Type
will haveMicrosoft.AspNetCore.Mvc.ModelBinding.ModelMetadata.IsBindingAllowed
set to <code>false</code>.public ExcludeBindingMetadataProvider(Type type)
-