TypeConverter.GetCreateInstanceSupported TypeConverter.GetCreateInstanceSupported TypeConverter.GetCreateInstanceSupported TypeConverter.GetCreateInstanceSupported Method

定义

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

重载

GetCreateInstanceSupported() GetCreateInstanceSupported() GetCreateInstanceSupported() 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) GetCreateInstanceSupported(ITypeDescriptorContext) GetCreateInstanceSupported(ITypeDescriptorContext) 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() GetCreateInstanceSupported() GetCreateInstanceSupported() 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

返回

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

GetCreateInstanceSupported(ITypeDescriptorContext) GetCreateInstanceSupported(ITypeDescriptorContext) GetCreateInstanceSupported(ITypeDescriptorContext) 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 ITypeDescriptorContext ITypeDescriptorContext

一个 ITypeDescriptorContext,用于提供格式上下文。An ITypeDescriptorContext that provides a format context.

返回

如果更改此对象的属性需要调用 CreateInstance(IDictionary) 来创建新值,则为 true;否则为 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.

另请参阅

适用于