Provides information about the properties and events for a component. This class cannot be inherited.
For a list of all members of this type, see TypeDescriptor Members.
[Visual Basic] NotInheritable Public Class TypeDescriptor [C#] public sealed class TypeDescriptor [C++] public __gc __sealed class TypeDescriptor [JScript] public class TypeDescriptor
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
All the methods in this class are static (Shared in Visual Basic) . You cannot create an instance of this class.
You can set property and event values two different ways: specify them in the component class or change them at design time. Because you can set these values two ways, the overloaded methods in this class take two different types of parameters. A method can take the type of class or an instance of an object. At design time, these two kinds of methods can be different; at run time, they are usually the same.
When you want to access TypeDescriptor information and you have an instance of the object, use the method that calls for a component. Use the method that calls for the type of the class method only when you do not have an instance of the object.
For more information about reflection, see Discovering Type Information at Run Time.
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework
Assembly: System (in System.dll)