TypeConverter.GetCreateInstanceSupported 方法

定义

返回更改此对象的值是否求调用 CreateInstance(IDictionary) 方法来创建新值。Returns whether changing a value on this object requires a call to the CreateInstance(IDictionary) method to create a new value.

重载

GetCreateInstanceSupported()

返回更改此对象的值是否求调用 CreateInstance(IDictionary) 方法来创建新值。Returns whether changing a value on this object requires a call to the CreateInstance(IDictionary) method to create a new value.

GetCreateInstanceSupported(ITypeDescriptorContext)

返回一个结果,即更改此对象上的某个值是否需要调用 CreateInstance(IDictionary) 以使用指定的上下文创建新值。Returns whether changing a value on this object requires a call to CreateInstance(IDictionary) to create a new value, using the specified context.

GetCreateInstanceSupported()

返回更改此对象的值是否求调用 CreateInstance(IDictionary) 方法来创建新值。Returns whether changing a value on this object requires a call to the CreateInstance(IDictionary) method to create a new value.

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

返回

Boolean

如果更改此对象上的某属性需要调用 true 以创建新值,则为 CreateInstance(IDictionary);否则为 falsetrue if changing a property on this object requires a call to CreateInstance(IDictionary) to create a new value; otherwise, false.

适用于

GetCreateInstanceSupported(ITypeDescriptorContext)

返回一个结果,即更改此对象上的某个值是否需要调用 CreateInstance(IDictionary) 以使用指定的上下文创建新值。Returns whether changing a value on this object requires a call to CreateInstance(IDictionary) to create a new value, using the specified 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,用于提供格式上下文。An ITypeDescriptorContext that provides a format context.

返回

Boolean

如果更改此对象上的某属性需要调用 true 以创建新值,则为 CreateInstance(IDictionary);否则为 falsetrue if changing a property on this object requires a call to CreateInstance(IDictionary) to create a new value; otherwise, false.

注解

当在此类中实现时,此方法始终返回 falseAs implemented in this class, this method always returns false.

继承者说明

如果要转换的类型必须重新创建要更改其值的对象,请重写此方法。Override this method if the type you want to convert must re-create the object to change its value.

使用 context 参数提取有关调用此转换器的环境的附加信息。Use the context parameter to extract additional information about the environment from which this converter is invoked. 此参数可以是 null ,因此请始终选中此参数。This parameter can be null, so always check it. 同样,上下文对象的属性可以返回 nullAlso, properties on the context object can return null.

另请参阅

适用于