.NET Framework Class Library
WindowsPrincipal..::.IsInRole Method

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

Overload List

  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
Remarks

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.

See Also

Reference

Tags :


Page view tracker