共用方式為


UnobtrusiveValidationAttributesGenerator.GetValidationAttributes 方法

定義

此類型/成員支援.NET Framework基礎結構,不適合直接從您的程式碼使用。從 的結構或內容 UnobtrusiveValidationAttributesGenerator 取得驗證屬性。

public static void GetValidationAttributes (System.Collections.Generic.IEnumerable<System.Web.Mvc.ModelClientValidationRule> clientRules, System.Collections.Generic.IDictionary<string,object> results);
static member GetValidationAttributes : seq<System.Web.Mvc.ModelClientValidationRule> * System.Collections.Generic.IDictionary<string, obj> -> unit
Public Shared Sub GetValidationAttributes (clientRules As IEnumerable(Of ModelClientValidationRule), results As IDictionary(Of String, Object))

參數

results
IDictionary<String,Object>

驗證的結果。

適用於