AdminPrivilege Class

Provides a function that indicates whether the current process is run as administrator with elevated privilege. This element is introduced in Windows PowerShell 5.0.

Namespace: Microsoft.OneGet.Utility.Platform
Assembly: Microsoft.OneGet.Utility (in Microsoft.OneGet.Utility.dll)

Usage

'Usage
Dim instance As AdminPrivilege

Syntax

'Declaration
Public Class AdminPrivilege
public class AdminPrivilege
public ref class AdminPrivilege
public class AdminPrivilege
public class AdminPrivilege

Inheritance Hierarchy

System.Object
  Microsoft.OneGet.Utility.Platform.AdminPrivilege

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Target Platforms

See Also

Reference

AdminPrivilege Members
Microsoft.OneGet.Utility.Platform Namespace