User Property
Collapse the table of content
Expand the table of content

MailAddress.User Property

 

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

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

member User : string with get

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 "tsmith@contoso.com", 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
Show:
© 2016 Microsoft