BindingSourceMetadataProvider(Type, BindingSource) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new BindingSourceMetadataProvider for the given type
.
public:
BindingSourceMetadataProvider(Type ^ type, Microsoft::AspNetCore::Mvc::ModelBinding::BindingSource ^ bindingSource);
public BindingSourceMetadataProvider (Type type, Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource bindingSource);
public BindingSourceMetadataProvider (Type type, Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource? bindingSource);
new Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.BindingSourceMetadataProvider : Type * Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource -> Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.BindingSourceMetadataProvider
Public Sub New (type As Type, bindingSource As BindingSource)
Parameters
- type
- Type
The Type. The provider sets BindingSource of the given Type or anything assignable to the given Type.
- bindingSource
- BindingSource
The BindingSource to assign to the given type
.