WindowsPrincipal::IsInRole Method

 

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

Namespace:   System.Security.Principal
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodIsInRole(Int32)

Determines whether the current principal belongs to the Windows user group with the specified relative identifier (RID).

System_CAPS_pubmethodIsInRole(SecurityIdentifier^)

Determines whether the current principal belongs to the Windows user group with the specified security identifier (SID).

System_CAPS_pubmethodIsInRole(String^)

Determines whether the current principal belongs to the Windows user group with the specified name.(Overrides ClaimsPrincipal::IsInRole(String^).)

System_CAPS_pubmethodIsInRole(WindowsBuiltInRole)

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

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

System_CAPS_importantImportant

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

Return to top
Show: