ICustomTypeDescriptor.GetAttributes 方法

定義

傳回元件之這個執行個體的自訂屬性集合。

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

傳回

AttributeCollection,其包含此物件的屬性。

備註

傳回值永遠不會 null是 。

如果物件未指定任何自定義屬性,實作者可以傳回空白 AttributeCollection

適用於

另請參閱