Custom Principal Permission
From: Olivier Haddad (olivier.hadad_at_emblaze.com)
Date: 06/25/03
- Next message: Mikey: "Re: Unique ID Generator"
- Previous message: Stuart Douglas: "VB.NET code on a network share"
- Next in thread: Eugene V. Bobukh [MS]: "Re: Custom Principal Permission"
- Reply: Eugene V. Bobukh [MS]: "Re: Custom Principal Permission"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 25 Jun 2003 13:10:53 +0300
I wrote a simple class implementing IPermission and a corresponding
attribute class deriving from SecurityAttribute.
My permission class does not derive from CodeAccessPermission as I am not
interested in a stack walk (like PrincipalPermission).
I didn't add the assembly to the Security Policy as MSDN states that it is
not needed for non-CAS permissions.
Imperative permission works fine, but declarative permission is ignored.
Checking the compiled file with ILDasm and Permview revealed that no XML
permission metadata was added.
How do I get my Security Attribute derivated class to work?
The MSDN documentation only gives proper examples for CodeAccessSecurity
derived classes.
- Next message: Mikey: "Re: Unique ID Generator"
- Previous message: Stuart Douglas: "VB.NET code on a network share"
- Next in thread: Eugene V. Bobukh [MS]: "Re: Custom Principal Permission"
- Reply: Eugene V. Bobukh [MS]: "Re: Custom Principal Permission"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|