On Fri, 12 Apr 2002 15:11:16 -0400, Marsh, Drew <[EMAIL PROTECTED]> wrote:

>Dave Serrano [mailto:[EMAIL PROTECTED]] wrote:
>
>> The next question, does anyone know of a way to union
>> permissions in the attribute?

<snip/>

>I not 100% certain, but I *think* you can apply more than one instance of
>the attribute and the runtime will take the different declarations and
union
>them together. I don't have time to check, but let us know what happens.

Yep, it works.  In my test class, I did this:

  [method: StrongNameIdentityPermission
(SecurityAction.Demand,
   PublicKey = "002400000...")]
  [method: StrongNameIdentityPermission
(SecurityAction.Demand,
   PublicKey = "000000000...")]
  public void CallMe()
  {

  }

Where the 2nd key is MS's public key.  When I call this method from a
button's Click event, I no longer get the exception.

Regards,

Jason

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to