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

參數

傳回

如果在這個物件上變更屬性需要呼叫 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.

另請參閱

適用於