CustomTypeDescriptor.GetAttributes 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳一組由此型別描述符所代表的型別的自訂屬性。
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 該方法會呼叫父程式對應的方法。