Udostępnij za pośrednictwem


Method '<methodname>' has a link demand, but overrides or implements the following methods which do not have a link demand. A security hole may exist:

A security link demand action has been added to the method. However, the method overrides or implements methods that do not have link demands. Therefore the overridden or implemented methods can be called with insufficient permissions, which may cause a security issue.

By default, this message is a warning. For more information on hiding warnings or treating warnings as errors, see Configuring Warnings in Visual Basic.

Error ID: BC42200

To correct this error

  • Add link demands to the overridden and/or implemented methods.

See Also

Concepts

Link Demands

Demand vs. LinkDemand

Security Optimizations