Licensing Your Application

The .NET Framework supports a component licensing model that works identically regardless of the application: UI control, Web control, application, component, and so on.

Enabling Licensing

Licenses are meant to provide some proof that the entity running the component is authorized by the component author to do so. The most obvious example comes in the form of companies protecting their copyrights and sales by ensuring that only valid, paid-for copies of their software can be executed.

If you are going to develop components that need to be licensed, the steps to do so are straightforward: First, you apply an attribute to the class that identifies a license provider that will dispense the license for the component. Then, ...

Get Visual Basic® Programmer's Guide to the .NET Framework Class Library 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.