Using Code Access Security Demands

As you might imagine, there are security classes to express security for a wide variety of resources. An exhaustive list would require a considerable amount of space; I will leave this to the VS .NET help files. However, as an appetizer I'll mention that you can express security requests to determine whether operations like file I/O are permitted, whether common file dialogs can be shown, whether the registry can be written to—you can even check whether assemblies can be linked. You can begin your exploration by reading the Introduction to Code Access Security help documentation in the Visual Studio .NET IDE. To get you started I have included here some common security checks you might want to use in your code. ...

Get Visual Basic® .NET Power Coding now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.