System::TypeInfo::GetCustomAttributes 方法

TypeInfo::GetCustomAttributes() const method

返回一个数组,其中包含表示应用于该类型的所有自定义属性的对象。

ArrayPtr<ObjectPtr> System::TypeInfo::GetCustomAttributes() const

另见

TypeInfo::GetCustomAttributes(const TypeInfo&, bool) const method

返回一个数组,其中包含表示应用于该类型的特定属性的对象。

ArrayPtr<ObjectPtr> System::TypeInfo::GetCustomAttributes(const TypeInfo &attributeType, bool inherit) const
参数类型描述
attributeTypeconst TypeInfo&要查找的属性的类型。
inheritbool是否也查找继承的属性。

另见