NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

TypeDescriptor Class

Provides information about the properties and events for a component. This class cannot be inherited.

Object
   TypeDescriptor

[Visual Basic]
NotInheritable Public Class TypeDescriptor
[C#]
public sealed class TypeDescriptor
[C++]
public __gc __sealed class TypeDescriptor
[JScript]
public class TypeDescriptor

Remarks

Use the static (in Visual Basic Shared) methods provided in this class to get information about a component. All the methods in this class are static (Shared).

Property and event values can be set in two different ways: they can be specified in the component class, or they can be changed at design time. Because of this, the overloaded methods in this class take two different types of parameters: a method can take the type of class, or it can take an instance of an object. At design time, these two kinds of methods can be different. At run time, these methods are usually the same.

When you want to access TypeDescriptor information, use the method that calls for a component when you have an instance of the object. Use the method that calls for type of the class method only when you do not have an instance of the object.

TypeDescriptor provides the following methods:

Requirements

Namespace: System.ComponentModel

Assembly: System.dll

See Also

TypeDescriptor Members | System.ComponentModel Namespace