Click to Rate and Give Feedback

  Switch on low bandwidth view
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
WindowsPrincipal..::.IsInRole Method

Determines whether the current principal belongs to a specified Windows user group.

  NameDescription
Public methodIsInRole(Int32) Determines whether the current principal belongs to the Windows user group with the specified relative identifier (RID).
Public methodIsInRole(SecurityIdentifier) Determines whether the current principal belongs to the Windows user group with the specified security identifier (SID).
Public methodIsInRole(WindowsBuiltInRole) Determines whether the current principal belongs to the Windows user group with the specified WindowsBuiltInRole.
Public methodIsInRole(String) Determines whether the current principal belongs to the Windows user group with the specified name.
Top

There are four overloads for this method. For performance reasons, the IsInRole(SecurityIdentifier) overload is strongly recommended.

Important noteImportant Note:

The IsInRole method is not supported on Windows 98 or Windows Millennium Edition.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker