語言

UserPrincipal.Current 屬性

定義

取得一個代表執行緒目前使用者的使用者主體物件。

public:
 static property System::DirectoryServices::AccountManagement::UserPrincipal ^ Current { System::DirectoryServices::AccountManagement::UserPrincipal ^ get(); };
public static System.DirectoryServices.AccountManagement.UserPrincipal Current { get; }
static member Current : System.DirectoryServices.AccountManagement.UserPrincipal
Public Shared ReadOnly Property Current As UserPrincipal

屬性值

UserPrincipal A代表目前的使用者。

例外狀況

底層的商店不支援此特性。

找不到目前使用者的使用者主物件。 主物件可能包含存取控制清單,以防止未經授權使用者存取。

發現多個與目前使用者相符的使用者主物件。

適用於