BindingSourceMetadataProvider(Type, BindingSource) 构造函数

定义

为给定 type的 创建一个新 BindingSourceMetadataProvider

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)

参数

type
Type

Type。 提供程序设置 BindingSource 给定 Type 或可分配给给定 Type的任何内容。

bindingSource
BindingSource

BindingSource要分配给给定 type的 。

适用于