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) |
取代位於指定之索引處的模型驗證程式提供者項目。 |