dotnet / dotnet/dotnet-api-docs

Code example

Open
#1,299 0 comments 0 reactions 0 assignees View on GitHub
area-System.ComponentModel.DataAnnotations dotnet-api/prod Pri2 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

Please provide some sample code for .net core how to access the name with GetName()

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: 49f19927-1997-0210-2101-af5a9f31d97f
* Version Independent ID: 3480a4a1-abb3-80ea-d621-c184af2b02f0
* Content: [DisplayAttribute.GetName Method (System.ComponentModel.DataAnnotations)](https://docs.microsoft.com/en-us/dotnet/api/system.componentmodel.dataannotations.displayattribute.getname?view=netframework-4.7.2)
* Content Source: [xml/System.ComponentModel.DataAnnotations/DisplayAttribute.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.ComponentModel.DataAnnotations/DisplayAttribute.xml)
* Product: **dotnet-api**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**

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.