Article ID: 816640 - Last Review: May 12, 2007 - Revision: 3.2 PRB: Role Parameter Is Case Sensitive for IsInRole MethodOn This PageSYMPTOMSIn the Microsoft .NET Framework 1.1, you may pass a string
as a parameter to the IsInRole method of the GenericPrincipal class or of the WindowsPrincipal class. When you do this, the role parameter is treated as case-insensitive by the IsInRole method when the IsInRole method evaluates the role parameter. This behavior for the IsInRole method has changed from the .NET Framework 1.0. The .NET
Framework 1.0 was case-sensitive. STATUSThis behavior is by design. MORE INFORMATIONSteps to Reproduce the ProblemNote The following code reproduces the behavior only when you are member of the Guests role.
REFERENCESFor more information about the WindowsPrincipal.IsInRole method, visit the following Microsoft Developer Network (MSDN)
Web site: http://msdn2.microsoft.com/en-us/library/system.security.principal.windowsprincipal.isinrole(vs.71).aspx
(http://msdn2.microsoft.com/en-us/library/system.security.principal.windowsprincipal.isinrole(vs.71).aspx)
| Article Translations
|

Back to the top
