dotnet / dotnet/dotnet-api-docs

How can I access the encoding of the DisplayName property in MailAddress

Open
#1,125 2 comments 0 reactions 0 assignees View on GitHub
area-System.Net Pri3 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

Hi,
The third constructor of [Mail​Address](https://docs.microsoft.com/en-us/dotnet/api/system.net.mail.mailaddress.-ctor?view=netframework-4.7), MailAddress(String, String, Encoding.

The third parameter is, displayNameEncoding Encoding
The Encoding that defines the character set used for displayName.

But when I have a instance of Mail​Address, how can I get the encoding of the displayname?

I am not sure if there is the correct place for me to give the feedback,but I can not leave a comment in [document](https://docs.microsoft.com/en-us/dotnet/api/system.net.mail.mailaddress.-ctor?view=netframework-4.7)

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.