MailAddress.User Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the user information from the address specified when this instance was created.

Namespace:   System.Net.Mail
Assembly:  System (in System.dll)

Public ReadOnly Property User As String

Property Value

Type: System.String

A String that contains the user name portion of the Address.

In a typical e-mail address, the user string includes all information preceding the "@" sign. For example, in "", the user is "tsmith".

The following code example displays the destination of an e-mail message.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top