Export (0) Print
Expand All

ReferenceConverter Class

Provides a type converter to convert object references to and from other representations.

For a list of all members of this type, see ReferenceConverter Members.

System.Object
   System.ComponentModel.TypeConverter
      System.ComponentModel.ReferenceConverter
         System.ComponentModel.ComponentConverter

[Visual Basic]
Public Class ReferenceConverter
   Inherits TypeConverter
[C#]
public class ReferenceConverter : TypeConverter
[C++]
public __gc class ReferenceConverter : public TypeConverter
[JScript]
public class ReferenceConverter extends TypeConverter

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Remarks

The ReferenceConverter is typically used within the context of sited components or a design environment. Without a component site or a usable ITypeDescriptorContext, this converter is of little use.

This converter converts a reference of an object that implements IComponent and displays its properties in the Properties window.

For more information about type converters, see the TypeConverter base class and Implementing a Type Converter.

Note   You should never create an instance of ReferenceConverter. Instead, call the GetConverter method of TypeDescriptor. For more information, see the examples in the TypeConverter base class.

This class provides the IsValueAllowed method to check whether a particular value can be added to the standard values collection. If you do not want to add the value to the collection, override this method.

Notes to Inheritors:  Override IsValueAllowed when you do not want to add a value to the standard values collection.

Requirements

Namespace: System.ComponentModel

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System (in System.dll)

See Also

ReferenceConverter Members | System.ComponentModel Namespace

Show:
© 2014 Microsoft