|
UserAccountControlIsUserAdmin Property
|
Returns true if the current user has administrator privileges.
Namespace: GSF.IdentityAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.232-beta+203aa83a5a82d50f387e69875549969ad138d6e0
Syntaxpublic static bool IsUserAdmin { get; }
Public Shared ReadOnly Property IsUserAdmin As Boolean
Get
public:
static property bool IsUserAdmin {
bool get ();
}
static member IsUserAdmin : bool with get
GSF.Identity.UserAccountControl.get_IsUserAdmin = function();
View SourceProperty Value
Boolean
Remarks
If UAC is on, then this property will return true even if the current process is not running elevated.
If UAC is off, then this property will return true if the user is part of the built-in Administrators group.
See Also