Provides a means for checking to see if the principal belongs to a given role.
[Visual Basic] Overridable Public Function IsInRole( _ ByVal role As String _ ) As Boolean [C#] public virtual bool IsInRole( string role ); [C++] public: virtual bool IsInRole( String* role ); [JScript] public function IsInRole( role : String ) : Boolean;
True if principal is a member of the role specified, false otherwise.
WindowsPrincipal Class | WindowsPrincipal Members | System.Security.Principal Namespace