ITypeDescriptorContext Interface
Provides contextual information about a component, such as its container and property descriptor.
Assembly: System (in System.dll)
| Name | Description | |
|---|---|---|
![]() | Container | Gets the container representing this TypeDescriptor request. |
![]() | Instance | Gets the object that is connected with this type descriptor request. |
![]() | PropertyDescriptor | Gets the PropertyDescriptor that is associated with the given context item. |
| Name | Description | |
|---|---|---|
![]() | GetService(Type) | Gets the service object of the specified type.(Inherited from IServiceProvider.) |
![]() | OnComponentChanged() | Raises the ComponentChanged event. |
![]() | OnComponentChanging() | Raises the ComponentChanging event. |
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.
Note |
|---|
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. |
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0


