Logo 
Search:

.Net Framework Interview FAQs

Submit Interview FAQ
Home » Interview FAQs » .Net FrameworkRSS Feeds
.Net Framework
Comments: 0

Can I create my own metadata attributes?

Yes. Simply derive a class from System.Attribute and mark it with the AttributeUsage attribute. For example:

[AttributeUsage(AttributeTargets.Class)]
public class InspiredByAttribute : System.Attribute
{
public string Insp...
Posted By:Devlan Jones      Posted On: Feb 10

.Net Framework
Comments: 0

What is Code Access Security (CAS)?

CAS is the part of the .NET security model that determines whether or not code is allowed to run, and what resources it can use when it is running. For example, it is CAS that will prevent a .NET web applet from formatting your hard disk.
Posted By:Heru Chalthoum       Posted On: Nov 04

.Net Framework
Comments: 0

How does CAS work?

The CAS security policy revolves around two key concepts - code groups and permissions. Each .NET assembly is a member of a particular code group, and each code group is granted the permissions specified in a named permission set.

For example, usi...
Posted By:Murad Bashara      Posted On: Mar 15

.Net Framework
Comments: 0

Who defines the CAS code groups?

Microsoft defines some default ones, but you can modify these and even create your own. To see the code groups defined on your system, run 'caspol -lg' from the command-line. On my system it looks like this:

Level = Machine

Code Groups:
...
Posted By:Juan Reynolds      Posted On: Mar 02

.Net Framework
Comments: 0

How do I define my own code group?

Use caspol. For example, suppose you trust code from www.mydomain.com and you want it have full access to your system, but you want to keep the default restrictions for all other internet sites. To achieve this, you would add a new code group as a su...
Posted By:Rafael Thompson      Posted On: Mar 23

.Net Framework
Comments: 0

How do I change the permission set for a code group?

Use caspol. If you are the machine administrator, you can operate at the 'machine' level - which means not only that the changes you make become the default for the machine, but also that users cannot change the permissions to be more permissive. If ...
Posted By:Helga Miller      Posted On: Nov 03

  2  3  4  5  6  7  8  9  10  11  12