Principal.UserPrincipalName Principal.UserPrincipalName Principal.UserPrincipalName Principal.UserPrincipalName Property

Definition

Gets or sets the user principal name (UPN) associated with this principal.

public:
 property System::String ^ UserPrincipalName { System::String ^ get(); void set(System::String ^ value); };
[get: System.Security.SecurityCritical]
[set: System.Security.SecurityCritical]
public string UserPrincipalName { get; set; }
member this.UserPrincipalName : string with get, set
Public Property UserPrincipalName As String

Property Value

The UPN associated with this principal or null if no if the UPN has not been set.

Exceptions

Remarks

Setting this property to null removes the existing UPN, if one exists.

Applies to