Custom Permission and Declarative support

D

Doug Bahr

Please forgive if this question has been answered a million times before, as
I have seen many requests for help on this issues but I have not seen any
closer on the issue...

I have a custom Permission as follows

public sealed class RightsPermission : System.Security.IPermission,
System.Security.Permissions.IUnrestrictedPermission,
System.Security.ISecurityEncodable,
System.Runtime.Serialization.ISerializable
{

}

and a matching Attribute

[AttributeUsageAttribute(AttributeTargets.Class |
AttributeTargets.Method,AllowMultiple = false)]

[SerializableAttribute]

public sealed class RightsPermissionAttribute :
System.Security.Permissions.SecurityAttribute

{

}

I can imperatively use the permission, but when I try and use it
declaratively, the runtime seems to ignore

it completely and act as if the permission attribute check does not exist.



Please help!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top