Share via


MailUser.UserPrincipalName property

Gets or sets the user principal name (UPN) of the mail user.

Namespace:  Microsoft.Exchange.Data.Directory.Management
Assembly:  Microsoft.Exchange.Data.Directory (in Microsoft.Exchange.Data.Directory.dll)

Syntax

'Declaration
Public Property UserPrincipalName As String
    Get
    Set
'Usage
Dim instance As MailUser
Dim value As String

value = instance.UserPrincipalName

instance.UserPrincipalName = value
public string UserPrincipalName { get; set; }

Property value

Type: System.String
The UPN of the mail user.

See also

Reference

MailUser class

MailUser members

Microsoft.Exchange.Data.Directory.Management namespace