CustomTypeDescriptor.GetAttributes 方法

定義

回傳一組由此型別描述符所代表的型別的自訂屬性。

public:
 virtual System::ComponentModel::AttributeCollection ^ GetAttributes();
public virtual System.ComponentModel.AttributeCollection GetAttributes();
abstract member GetAttributes : unit -> System.ComponentModel.AttributeCollection
override this.GetAttributes : unit -> System.ComponentModel.AttributeCollection
Public Overridable Function GetAttributes () As AttributeCollection

傳回

an AttributeCollection 包含該類型的屬性。 預設值為 Empty

實作

備註

如果一個父自訂型別描述符傳給 CustomTypeDescriptor 建構子, GetAttributes 該方法會呼叫父程式對應的方法。

適用於

另請參閱