TypeConverter.GetPropertiesSupported 方法

定義

傳回值,指出這個物件是否支援屬性。Returns whether this object supports properties.

多載

GetPropertiesSupported(ITypeDescriptorContext)

會使用指定的內容傳回數值,表示這個物件是否支援屬性。Returns whether this object supports properties, using the specified context.

GetPropertiesSupported()

傳回值,指出這個物件是否支援屬性。Returns whether this object supports properties.

GetPropertiesSupported(ITypeDescriptorContext)

會使用指定的內容傳回數值,表示這個物件是否支援屬性。Returns whether this object supports properties, using the specified context.

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

參數

context
ITypeDescriptorContext

提供格式內容的 ITypeDescriptorContextAn ITypeDescriptorContext that provides a format context.

傳回

如果應該呼叫 GetProperties(Object) 以尋找這個物件的屬性,則為 true,否則為 falsetrue if GetProperties(Object) should be called to find the properties of this object; otherwise, false.

備註

在這個類別中實作時,這個方法永遠傳回 falseAs implemented in this class, this method always returns false.

給繼承者的注意事項

如果您想要轉換的類型支援屬性, 請覆寫這個方法。Override this method if the type you want to convert supports properties.

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.

另請參閱

GetPropertiesSupported()

傳回值,指出這個物件是否支援屬性。Returns whether this object supports properties.

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

傳回

如果應該呼叫 GetProperties(Object) 以尋找這個物件的屬性,則為 true,否則為 falsetrue if GetProperties(Object) should be called to find the properties of this object; otherwise, false.

備註

在這個類別中實作時,這個方法永遠傳回 falseAs implemented in this class, this method always returns false.

適用於