dotnet-api-docs icon indicating copy to clipboard operation
dotnet-api-docs copied to clipboard

Please say how to set the Display Name

Open dcwilliams1 opened this issue 10 months ago • 1 comments

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

dcwilliams1 avatar Feb 25 '25 17:02 dcwilliams1

Tagging subscribers to this area: @ajcvickers