DataAnnotationsModelValidatorProvider.RegisterAdapterFactory Metódus

Definíció

Regisztrál egy adapter-előállítót az érvényesítési szolgáltatóhoz.

public:
 static void RegisterAdapterFactory(Type ^ attributeType, System::Web::ModelBinding::DataAnnotationsModelValidationFactory ^ factory);
public static void RegisterAdapterFactory(Type attributeType, System.Web.ModelBinding.DataAnnotationsModelValidationFactory factory);
static member RegisterAdapterFactory : Type * System.Web.ModelBinding.DataAnnotationsModelValidationFactory -> unit
Public Shared Sub RegisterAdapterFactory (attributeType As Type, factory As DataAnnotationsModelValidationFactory)

Paraméterek

attributeType
Type

Az attribútum típusa.

factory
DataAnnotationsModelValidationFactory

A megadott attribútum érvényesítő objektumának létrehozásához használt gyár.

A következőre érvényes: