简体   繁体   English

Microsoft Enterprise Library 3.1-验证-来自resx的消息

[英]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. 我试图使用企业库3.1验证块来验证新项目中的对象。 This application is to be multi-lingual and as such need to be able to put my error messages into resx files. 此应用程序将是多语言的,因此需要能够将我的错误消息放入resx文件中。 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? 您是否会在对象本身上使用config部分或Attributes,以及如何指定要使用的resx文件?

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. 您可以在企业库文档中找到更多信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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