BindingSourceMetadataProvider(Type, BindingSource) 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为给定 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
的 。