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

Explain the difference between inline and code behind - which is best in?

763


Explain the differences between clr & cts?

789


What are the various types of validation controls provided by asp.net?

774


how to implement some securty aspect in our application i.e 1.cookie poisioning. 2.data encryption. 3.forcefull browsing 4.sql/code injection 5.securing web app by using web services ........my question is how to implement these thing in our application is this done by hard coding or by help of some tool

1898


Explain Optimization technique description?

827


What are the new web part controls in asp.net 2.0 ?

732


What does the .webpart file do?

803


What is the use of global.asax file?

783


What is asp.net and how it works?

751


What is State Management in .Net and how many ways are there to maintain a state in .Net? What is view state?

833


What are different types of authentication techniques that are used in connection strings to connect .net applications with microsoft sql server?

756


What is mvc in asp.net interview question? : Asp.Net MVC

738


What is ViewState? What does the "EnableViewState" property do? Why would I want it on or off?

914


What are validators and list some validators of asp.net?

755


What is the use of worker process in asp.net?

754