TypeConverter.GetCreateInstanceSupported 方法

定义

返回更改此对象的值是否求调用 CreateInstance(IDictionary) 方法来创建新值。

重载

GetCreateInstanceSupported()

返回更改此对象的值是否求调用 CreateInstance(IDictionary) 方法来创建新值。

GetCreateInstanceSupported(ITypeDescriptorContext)

返回一个结果,即更改此对象上的某个值是否需要调用 CreateInstance(IDictionary) 以使用指定的上下文创建新值。

GetCreateInstanceSupported()

返回更改此对象的值是否求调用 CreateInstance(IDictionary) 方法来创建新值。

public:
 bool GetCreateInstanceSupported();
public bool GetCreateInstanceSupported ();
member this.GetCreateInstanceSupported : unit -> bool
Public Function GetCreateInstanceSupported () As Boolean

返回

Boolean

如果更改此对象上的某属性需要调用 true 以创建新值,则为 CreateInstance(IDictionary);否则为 false

适用于

GetCreateInstanceSupported(ITypeDescriptorContext)

返回一个结果,即更改此对象上的某个值是否需要调用 CreateInstance(IDictionary) 以使用指定的上下文创建新值。

public:
 virtual bool GetCreateInstanceSupported(System::ComponentModel::ITypeDescriptorContext ^ context);
public virtual bool GetCreateInstanceSupported (System.ComponentModel.ITypeDescriptorContext context);
public virtual bool GetCreateInstanceSupported (System.ComponentModel.ITypeDescriptorContext? context);
abstract member GetCreateInstanceSupported : System.ComponentModel.ITypeDescriptorContext -> bool
override this.GetCreateInstanceSupported : System.ComponentModel.ITypeDescriptorContext -> bool
Public Overridable Function GetCreateInstanceSupported (context As ITypeDescriptorContext) As Boolean

参数

context
ITypeDescriptorContext

一个 ITypeDescriptorContext,用于提供格式上下文。

返回

Boolean

如果更改此对象上的某属性需要调用 true 以创建新值,则为 CreateInstance(IDictionary);否则为 false

注解

当在此类中实现时,此方法始终返回 false

继承者说明

如果要转换的类型必须重新创建对象以更改其值,请重写此方法。

使用 context 参数提取有关调用此转换器的环境的附加信息。 此参数可以是 null,因此请始终检查它。 同样,上下文对象的属性可以返回 null

另请参阅

适用于