Mailbox.UserPrincipalName property
Gets or sets the principal name for the mailbox 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 Mailbox
Dim value As String
value = instance.UserPrincipalName
instance.UserPrincipalName = value
public string UserPrincipalName { get; set; }
Property value
Type: System.String
The principal name for the mailbox user.
Remarks
The UserPrincipalName property specifies the principal for this mailbox. This is the logon name for the user. The principal consists of a user name and a suffix. Typically, the suffix is the domain name where the user account resides.