LinkDemand Error
From: Cristian Anca (cristi.anca_at_go.ro)
Date: 01/07/05
- Next message: Nicole Calinoiu: "Re: LinkDemand Error"
- Previous message: CyberDigger: "Why the impersonation work in one case and not the other?"
- Next in thread: Nicole Calinoiu: "Re: LinkDemand Error"
- Reply: Nicole Calinoiu: "Re: LinkDemand Error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 07 Jan 2005 17:36:55 +0200
Hello,
I have a class that implements the interface IMessageFilter. When I run
FxCop on this class the following error appears:
The virtual method IMessageFilter.PreFilterMessage(Message&):Boolean
defined by type 'System.Windows.Forms. IMessageFilter' and its override
MessageFilter.PreFilterMessage(Message&):Boolean do not have the same
LinkDemand status. Add a LinkDemand where required.
I have placed the folloing code:
[CustomPermissionAttribute(SecurityAction.LinkDemand)] but still have
the same error. I tried with the
[CustomPermissionAttribute(SecurityAction.LinkDemand),
Unrestricted=true] and also with Unrestricted=false but nothing, same
error.
Can someone tell me what I do wrong.
Thank you.
- Next message: Nicole Calinoiu: "Re: LinkDemand Error"
- Previous message: CyberDigger: "Why the impersonation work in one case and not the other?"
- Next in thread: Nicole Calinoiu: "Re: LinkDemand Error"
- Reply: Nicole Calinoiu: "Re: LinkDemand Error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|