Principal.UserPrincipalName Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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); };
public string UserPrincipalName { get; set; }
public string UserPrincipalName { [System.Security.SecurityCritical] get; [System.Security.SecurityCritical] set; }
member this.UserPrincipalName : string with get, set
[<get: System.Security.SecurityCritical>]
[<set: System.Security.SecurityCritical>]
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.
- Attributes
Exceptions
The underlying store does not support this property.
Remarks
Setting this property to null removes the existing UPN, if one exists.
Applies to
ทํางานร่วมกับเราใน GitHub
แหล่งที่มาสำหรับเนื้อหานี้สามารถพบได้บน GitHub ซึ่งคุณยังสามารถสร้างและตรวจสอบปัญหาและคำขอดึงข้อมูลได้ สำหรับข้อมูลเพิ่มเติม ให้ดูคู่มือผู้สนับสนุนของเรา