Compartir a través de


ICustomTypeProvider Interface

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

Defines a method that returns a custom Type object used by the data binding system to determine the run-time structure of the implementing type.

Namespace:  System.Reflection
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Public Interface ICustomTypeProvider
public interface ICustomTypeProvider

The ICustomTypeProvider type exposes the following members.

Methods

  Name Description
Public method GetCustomType Returns a Type object that represents the run-time structure of the implementing type.

Top

Remarks

Implement this interface when you want to bind to objects with dynamically generated properties. This is useful to avoid errors that occur when attempting to bind to property names that cannot be resolved until run time. It is also useful when you use controls (such as DataGrid with AutoGenerateColumns set to true) that automatically generate user-interface elements based on the structure of bound objects. For example, you can use this interface to generate bindable objects from XML data with a schema that is known only at run time.

For more information, see Additional ICustomTypeProvider Resources.

Version Information

Silverlight

Supported in: 5

Platforms

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

See Also

Reference