Click or drag to resize

UserAccountControlIsUserAdmin Property

Returns true if the current user has administrator privileges.

Namespace: GSF.Identity
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.220-beta+a56b2444ff27b37e053039e60f062b99378309bd
Syntax
public static bool IsUserAdmin { get; }
View Source

Property 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