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 asp.net mvc5? : Asp.Net MVC

531


Dataset is the disconnected environment. suppose if you are binding records to gridview (disconnected environment) and you are making changes to the the grid but before updating the database if any other user modify the data, how will you avoid such problem?

1715


Explain the difference between an exe and a dll?

527


What a diffgram is, and a good use for one?

563


1.What r collections? 2.What is .pdb file? 3.Is it possible to provide access to users in master page? 4.What is dirty n Phantom Read(SQL)? 5.What r different isolation levels(SQL)? 6.How to set authentication mode in web.config file?

1778






Which is better asp.net or php?

528


What is different authentication mechanisms used in ASP.NET?

585


What is active web page?

562


Explain how can you debug your .net application?

531


Can you explain the basic use of dataview?

622


Why do we need master page in asp.net?

530


Why is mvc better than asp.net?

531


What is the latest version of asp.net?

533


1.what is the application pool. 2.what is the HttpModile and Http Handler. 3.C# 3.0 Features ? 4.Anonoymous Type,methopd and claas in 3.0? 5.difference between statsic and const ? 6.session vs application 7.state management clint side and server side ? 8.Genric list 9.c# 3.0 vs 3.5

1758


How can you ensure a permanent cookie?

549