1

What is the use of AdditionalMetadata Attribute in MVC 3 . What is Use of that? Please provide me clear example how to specify and use it to render in browser.

Thanks!!!

1

2 Answers 2

3

It could be used to specify some custom properties that are not part of the standard metadata properties. Here's an article which illustrates an example.

Sign up to request clarification or add additional context in comments.

Comments

0

Another option (and in my opinion a little bit cleaner, but it depends) is to use them through custom model metadata providers.

Here is one example of it.

Basically they are used for providing custom values from the model to the views, without requiring views to include logic to make these values up for themselves. Which results in a little bit cleaner and more generic views.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.