See Using the samples for help on compiling, setting up the debugger, and running the sample (either an exe or dll).
Open and compile the sample project in Visual Studio 2005. Set up debug application if needed.
This sample works in ArcCatalog, ArcMap, ArcScene or ArcGlobe. Open any of the applications.
Create or open a document. If you are debugging, check the Output Window in Visual Studio where the SimpleExtension class prints debugging information indicating it is listening to document events.
Open the Extension Manager dialog from Tools > Extensions… on the main menu.
Select to highlight one of the sample extensions to see its associated description displayed at the bottom of the dialog.
Take a note of what product license your application is currently running against and check on the appropriate sample extension in the dialog.
For example, if you are running ArcInfo license, check "ArcInfo Extension (C#)" or "ArcInfo Extension (VB.Net)" from the list. Extension checking will be successful. You can then check the extension off.
If you attempt to check the other product extension on, you will receive an error similar to the standard ArcGIS extensions, indicating it is unavailable.
Close and reopen the Extension Manager dialog. You will see the "(License not available)" message next to the extensions which you have failed to enable.