ExecutionUtilities.IsAuthenticatedUserInAdminGroup Method
Namespace: Microsoft.VisualStudio.TestTools.Execution
Assembly: Microsoft.VisualStudio.QualityTools.ExecutionCommon (in Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll)
Syntax
'Declaration
Public Shared Function IsAuthenticatedUserInAdminGroup ( _
identity As WindowsIdentity _
) As Boolean
public static bool IsAuthenticatedUserInAdminGroup(
WindowsIdentity identity
)
public:
static bool IsAuthenticatedUserInAdminGroup(
WindowsIdentity^ identity
)
static member IsAuthenticatedUserInAdminGroup :
identity:WindowsIdentity -> bool
public static function IsAuthenticatedUserInAdminGroup(
identity : WindowsIdentity
) : boolean
Parameters
- identity
Type: WindowsIdentity
Return Value
Type: Boolean
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.