Freigeben über


ITypeDescriptorContext Interface

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Provides information about a context to a type converter or a value editor, so that the type converter or editor can perform a conversion.

Namespace:  System.ComponentModel
Assembly:  System (in System.dll)

Syntax

'Declaration
Public Interface ITypeDescriptorContext _
    Inherits IServiceProvider
public interface ITypeDescriptorContext : IServiceProvider

The ITypeDescriptorContext type exposes the following members.

Properties

  Name Description
Public propertySupported by Silverlight for Windows PhoneSupported by Xbox 360 Container Gets the container with the set of objects for this formatter.
Public propertySupported by Silverlight for Windows PhoneSupported by Xbox 360 Instance Gets the instance that is invoking the method on the formatter object.
Public propertySupported by Silverlight for Windows PhoneSupported by Xbox 360 PropertyDescriptor Gets the PropertyDescriptor that is surfacing the given context item.

Top

Methods

  Name Description
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetService Gets the service object of the specified type. (Inherited from IServiceProvider.)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 OnComponentChanged Raises the OnComponentChanged event.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 OnComponentChanging Gets a value indicating whether this object can be changed.

Top

Remarks

This interface exists in Silverlight due to compatibility requirements for TypeConverter. It is not intended for implementation.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

See Also

Reference