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
Параметры
- identity
Тип: System.Security.Principal.WindowsIdentity
Возвращаемое значение
Тип: System.Boolean
Безопасность платформы .NET Framework
- Полное доверие для непосредственно вызывающего метода. Этот член не может быть использован частично доверенным кодом. Дополнительные сведения см. в разделе Использование библиотек из не вполне надежного кода.
См. также
Ссылки
Microsoft.VisualStudio.TestTools.Execution - пространство имен