dotnet / dotnet/dotnet-api-docs

Please say how to set the Display Name

Open
#11,014 1 comment 0 reactions 0 assignees View on GitHub
area-System.ComponentModel.DataAnnotations untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

### 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.