DataAnnotationsModelValidatorProvider.RegisterDefaultValidatableObjectAdapterFactory 方法

定义

为默认对象验证提供程序注册适配器工厂。

public:
 static void RegisterDefaultValidatableObjectAdapterFactory(System::Web::ModelBinding::DataAnnotationsValidatableObjectAdapterFactory ^ factory);
public static void RegisterDefaultValidatableObjectAdapterFactory (System.Web.ModelBinding.DataAnnotationsValidatableObjectAdapterFactory factory);
static member RegisterDefaultValidatableObjectAdapterFactory : System.Web.ModelBinding.DataAnnotationsValidatableObjectAdapterFactory -> unit
Public Shared Sub RegisterDefaultValidatableObjectAdapterFactory (factory As DataAnnotationsValidatableObjectAdapterFactory)

参数

例外

factorynull

适用于