TypeDescriptor.GetConverterFromRegisteredType 方法

定义

重载

GetConverterFromRegisteredType(Object)

获取指定组件的类型的类型转换器。

GetConverterFromRegisteredType(Type)

获取指定注册类型的类型转换器。

GetConverterFromRegisteredType(Object)

获取指定组件的类型的类型转换器。

public:
 static System::ComponentModel::TypeConverter ^ GetConverterFromRegisteredType(System::Object ^ component);
public static System.ComponentModel.TypeConverter GetConverterFromRegisteredType (object component);
static member GetConverterFromRegisteredType : obj -> System.ComponentModel.TypeConverter
Public Shared Function GetConverterFromRegisteredType (component As Object) As TypeConverter

参数

component
Object

要为其获取转换器的组件。

返回

指定组件的 TypeConverter

适用于

GetConverterFromRegisteredType(Type)

获取指定注册类型的类型转换器。

public:
 static System::ComponentModel::TypeConverter ^ GetConverterFromRegisteredType(Type ^ type);
public static System.ComponentModel.TypeConverter GetConverterFromRegisteredType (Type type);
static member GetConverterFromRegisteredType : Type -> System.ComponentModel.TypeConverter
Public Shared Function GetConverterFromRegisteredType (type As Type) As TypeConverter

参数

type
Type

目标组件的 Type

返回

指定类型的 TypeConverter

适用于