Provides contextual information about a component, such as its container and property descriptor.

See Also: ITypeDescriptorContext


public interface ITypeDescriptorContext : IServiceProvider


The ITypeDescriptorContext interface provides contextual information about a component. ITypeDescriptorContext is typically used at design time to provide information about a design-time container. This interface is commonly used in type conversion. For details, see TypeConverter.


Do not rely on the presence of this interface when you design a type converter. If a particular interface, property, or service is necessary but not available, the type converter should return null rather than throw an exception. This interface's properties can return null at any time, and you should plan for this.


Namespace: System.ComponentModel
Assembly: System (in System.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0,,

The members of System.ComponentModel.ITypeDescriptorContext are listed below.

Public Properties


Gets the container representing this TypeDescriptor request.


Gets the object that is connected with this type descriptor request.


Gets the PropertyDescriptor that is associated with the given context item.

Public Methods