Dela via


BindingSourceMetadataProvider(Type, BindingSource) Constructor

Definition

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.

Applies to