UserPrincipal.Current 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得一個代表執行緒目前使用者的使用者主體物件。
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代表目前的使用者。
例外狀況
底層的商店不支援此特性。
找不到目前使用者的使用者主物件。 主物件可能包含存取控制清單,以防止未經授權使用者存取。
發現多個與目前使用者相符的使用者主物件。