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

傳回

AttributeCollection,包含型別的屬性。 預設為 Empty

實作

備註

如果父系自定義型別描述項傳遞至 CustomTypeDescriptor 建構函式,方法 GetAttributes 會呼叫父系的對應方法。

適用於

另請參閱