Is it possible to validate a single property?

Topics: General discussion, Validation Application Block
Dec 20, 2008 at 6:08 AM

I would like to know if it's possible to validate a single property rather than the all class.

A bit like what the Integration.Winform proxy does when you map it to an error provider

thanks a lot
Dec 22, 2008 at 10:12 AM

You can validate a property programatically, here is a sample:


c = new Cust();


c.Address =




NotNullValidator notNull = new NotNullValidator();



ValidationResults results = notNull.Validate(c.Address);

Valiant Dudan
Global Technology & Solutions
Avanade, Inc.


Dec 22, 2008 at 10:39 AM
I didnt think of that ,
Thanks a lot that is very very helpful