Principal.UserPrincipalName 屬性

定義

取得或設定與此主體相關聯的使用者主體名稱 (UPN)。

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

屬性值

與此主體相關聯的 UPN,或是 Null (若尚未設定 UPN)。

屬性

例外狀況

基礎存放區不支援這個屬性。

備註

如果現有 UPN 存在,請將此屬性設定為 null 會移除現有的 UPN。

適用於