dotnet-api-docs
dotnet-api-docs copied to clipboard
Please say how to set the Display Name
Type of issue
Typo
Description
I looked up the DisplayName property to find out how to set it in code. This article has no examples and no mention of how to set the DisplayName. Could you please always include examples? Documentation without examples is not very useful.
[Enter feedback here]
Page URL
https://learn.microsoft.com/en-us/dotnet/api/system.componentmodel.dataannotations.validationcontext.displayname?view=net-8.0
Content source URL
https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.ComponentModel.DataAnnotations/ValidationContext.xml
Document Version Independent Id
b2459688-f6b6-8caa-3cba-81f04003e939
Article author
@dotnet-bot
Tagging subscribers to this area: @ajcvickers