What is Assert Method ?

Answer Posted / vathsala

Assert is a method that can be called on code access
permission classes and on the PermissionSet class. You can
use Assert to enable your code (and downstream callers) to
perform actions that your code has permission to do but its
callers might not have permission to do. A security
assertion changes the normal process that the runtime
performs during a security check. When you assert a
permission, it tells the security system not to check the
callers of your code for the asserted permission.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between response.redirect and server.transfer?

528


What is session in http request?

545


What is asp.net master page?

550


What is difference between View State and Hidden Field in ASP.NET?

648


What is web router?

495






What are the uses of list view control in Asp.net?

611


Why asp.net is used?

553


Can we override the enablepartialrendering property of the scriptmanager class?

637


How do you initiate validation on the server manually? What are two situations when you might you want to do that?

1351


Explain the difference between web user control and web custom control?

531


Error : The operation couldn’t be performed because ole db provider sqlncli10 for linked server was unable to begin a distributed transaction.00000110 oledb provider for linked server returned message the partner transaction manager has disabled its support for remote/network transactions. I can able to execute the stored procedure in sql server but when i run the web page getting error like above. I did all the configuration. what is the solution?

1895


What is the base class from which web forms are inherited?

522


Will the asp.net validators run in server side or client side? How do you do client-side validation in .net?

512


What is a 404 redirect?

547


What is postback request?

548