The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
GenericPrincipal::IsInRole Method (String^)
.NET Framework (current version)
Determines whether the current GenericPrincipal belongs to the specified role.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- role
-
Type:
System::String^
The name of the role for which to check membership.
Return Value
Type: System::Booleantrue if the current GenericPrincipal is a member of the specified role; otherwise, false.
Implements
IPrincipal::IsInRole(String^)The following code shows the use of the IsInRole method. This code example is part of a larger example provided for the GenericPrincipal class.
Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Available since 10
.NET Framework
Available since 1.1
Show: