Visual Studio .NET presents a great deal of information about controls and other components you use in the development environment. When you drag a compo- nent from the toolbox into your project, VS.NET appears to know everything about it—the events and properties it supports are displayed in the property panel, neatly categorized, with a short description available for each member. Some controls have their own unique interactive editing features. Many add extra items to Visual Studio .NET’s menus. You might suspect that this level of extensive and often highly specialized support is something that is available only for the built-in controls, but that is not the case. Visual Studio .NET has a very open architecture for allowing components to customize the way in which they integrate with the environment.
Basic Integration
To build components that exploit Visual Studio .NET’s integration facilities, you must understand the basic mechanisms involved. Component integration relies heavily on the .NET runtime’s reflection mechanism—the facility that allows type information to be examined at runtime. VS.NET uses reflection to discover what properties and events your component provides.
Strictly speaking, Visual Studio .NET doesn’t use reflection directly. It uses the TypeDescriptor class and its friends in the System. ComponentModel namespace. These provide a virtualized view of type information, which allows a component’s properties to be extended dynamically. The TypeDescriptor API is implemented using the reflection API however..
Download pdf Integrating Components with Visual Studio .NET
Related Searches: reflection mechanism, integration facilities, component integration, open architecture, nent
RSS feed for comments on this post · TrackBack URI
Leave a reply