共用方式為


ExecutionUtilities.IsAuthenticatedUserInAdminGroup 方法

命名空間:  Microsoft.VisualStudio.TestTools.Execution
組件:  Microsoft.VisualStudio.QualityTools.ExecutionCommon (在 Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll 中)

語法

'宣告
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

參數

傳回值

型別:System.Boolean

.NET Framework 安全性

請參閱

參考

ExecutionUtilities 類別

Microsoft.VisualStudio.TestTools.Execution 命名空間