How do I define my own code group

Answer Posted / kirti

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 sub-group of the

'Zone - Internet' group, like this:

caspol -ag 1.3 -site www.mydomain.com FullTrust

Now if you run caspol -lg you will see that the new group has been added as group 1.3.1:

1.3. Zone - Internet: Internet

1.3.1. Site - www.mydomain.com: FullTrust

Note that the numeric label (1.3.1) is just a caspol invention to make the code groups easy to manipulate from the command-line. The underlying runtime never sees it.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain unit test done by tester on development team?

738


What is the mvc pattern (model view controller pattern)?

776


how do you mark a property as required? For example, for a project, the name is a required field.

796


What is meant by tempdata in mvc?

746


How we can call a JavaScript function on the change of a Dropdown List in ASP.Net MVC?

759


What is the difference between entity framework and mvc?

744


Is mvc 4 supporting windows azure sdk (software development kit) ?

768


What is connected scenario? : Entity framework

741


What is entity framework firstordefault?

731


Does windows 10 need .net framework?

725


How does work clr?

710


Will the name change be reflected in any of the existing .net framework 2.0 apis, assemblies, or namespaces?

770


Can you please explain the request flow in ASP.NET MVC framework?

844


Explain what languages does the .net framework support?

732


What is NonActionAttribute ?

799