Declarative role-based security

From: Jason L James (jason_at_no-spam.dive-master.org)
Date: 08/26/04


Date: Thu, 26 Aug 2004 11:38:07 GMT

Does anyone know how I catch the exception raised
when the securityAction.Demand method fails in the
declarative role-based security example below.

    <PrincipalPermission(SecurityAction.Demand, _
        Name:="????", _
        Role:="????")> _
    Private Sub Button5_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button5.Click
     .....
     .....
     .....
     .....
    End Sub

Thanks,

Jason.


Quantcast