ModelValidatorProviderCollection 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
这里不会更新任何内容;请不要在这里添加材料。
public class ModelValidatorProviderCollection : System.Collections.ObjectModel.Collection<System.Web.Mvc.ModelValidatorProvider>
type ModelValidatorProviderCollection = class
inherit Collection<ModelValidatorProvider>
Public Class ModelValidatorProviderCollection
Inherits Collection(Of ModelValidatorProvider)
- 继承
-
ModelValidatorProviderCollection
构造函数
ModelValidatorProviderCollection() |
初始化 ModelValidatorProviderCollection 类的新实例。 |
ModelValidatorProviderCollection(IList<ModelValidatorProvider>) |
使用模型验证提供程序列表初始化 类的新实例 ModelValidatorProviderCollection 。 |
方法
ClearItems() |
从集合中删除所有元素。 |
GetValidators(ModelMetadata, ControllerContext) |
返回模型验证程序的列表。 |
InsertItem(Int32, ModelValidatorProvider) |
将模型验证程序提供程序插入到集合中。 |
RemoveItem(Int32) |
删除集合中指定索引处的元素。 |
SetItem(Int32, ModelValidatorProvider) |
替换指定索引处的模型验证程序提供程序元素。 |