简体   繁体   中英

Microsoft Enterprise Library 3.1 - Validation - Message From resx

I am trying to use the Enterprise Library 3.1 Validation Block for validating my objects in a new project. This application is to be multi-lingual and as such need to be able to put my error messages into resx files. How would you go about doing this? Would you use the config section or Attributes on the objects themselves and how do you specify the resx file to use?

Thank you for your help.

You should use Message Template Tokens .
Take a look at the following link:

You will find more in Enterprise Library documentation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM